Copy link to clipboard
Copied
Is there a list somewhere of the restrictions on when you can use conditional text? it appears that you cannot use it in these areas:
* betweeen the <head> and </head> tags
* inside a javascript.
True? If so, are there other areas as well?
thanks,
Jenny
Copy link to clipboard
Copied
You can apply tags to topics, topic content, TOC items and index items, stuff you can see without diving into the HTML. The head section is not seen in the Design Editor so you cannot apply tags there. Why would you want to?
See www.grainge.org for RoboHelp and Authoring tips
Copy link to clipboard
Copied
Our help, which was originally developed outside of RH, includes custom toolbars that are built using javascript. The toolbars display dropdown lists for "overview," "how-to," and "see also" links to other topics. The href links to the topics are parameters to the javascript, and they must be specified in the <head> section and so must be edited via the HTML editor.
Some of the <href> links should not display in certain cases, depending on which application the topic is used with. I was hoping that I could just manually add the <?rh-cbt_start condition="xxx" ?> tag in the HTML code, but it doesn't work.
I realize that we could probably rework this to use RH related topic lists (this will be difficult but not impossible if we can figure out how to script).
If we do move the links into RH-supported lists of related topics, then can we conditionalize the various links in the RH related topics lists, so that some display and some do not?
Copy link to clipboard
Copied
Any content in a topic can have a tag applied. So if you simply want some links in a topic to appear and others not according to the build expression, then yes you can do that.
See www.grainge.org for RoboHelp and Authoring tips