Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Conditional Tag Stylesheet Reference?

Guest
Nov 20, 2008 Nov 20, 2008
I have a branded version of help and a generic version of help.

I originally set this up using two different templates, each with their own separate stylesheet.

But this is extra work when I output layouts. I have to switch all topics from one template to another. (Ideally you should be able to select a template in the layout options, no?)

I'd like to use one template and use conditional tags to show the appropriate stylesheet. Is this possible?

Or is there some other way to accomplish the same thing?

Thanks for your help.
615
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 20, 2008 Nov 20, 2008
Depending on your version of RH and quite how the branding is implemented, sounds like Variables could help. In one version a value could be GenericName and in another BrandX.

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 20, 2008 Nov 20, 2008
I'm using RH 7.

I'm using variables and tags. That works great.

What I'm trying to do is generate 2 layouts from the same topics that use different stylesheets, w/o having to switch templates.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 20, 2008 Nov 20, 2008
Is the change just the CSS stylesheet or does the template have to change as well?

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 20, 2008 Nov 20, 2008
I'd just like to change the reference to another stylesheet, for example from styleBrand.css to styleGeneric.css.

I'm only using the template so I can have separate stylesheets. (I'm using tags to show different content in the headers and footers.)

Thanks again.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 20, 2008 Nov 20, 2008
So assuming all topics have one CSS, in the topic list select all the topics and right click. In Properties select the other style sheet and generate. Then revert back.

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 20, 2008 Nov 20, 2008
That is what I'm doing now.

I'm asking if there is a way to do it programatically/automatically so I can batch generate both layouts without manually having to swap out templates or stylesheets.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 20, 2008 Nov 20, 2008
LATEST
"What I'm trying to do is generate 2 layouts from the same topics that use different stylesheets, w/o having to switch templates."

What I suggested does allow you to switch CSS without switching template. Sorry misunderstood you.

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 20, 2008 Nov 20, 2008
I'm afraid not without manually assigning the template.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp