Skip to main content
June 9, 2011
Question

which areas of a topic can use conditional text?

  • June 9, 2011
  • 1 reply
  • 413 views

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

    This topic has been closed for replies.

    1 reply

    Peter Grainge
    Community Expert
    Community Expert
    June 10, 2011

    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

    @petergrainge

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    June 10, 2011

    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?

    Peter Grainge
    Community Expert
    Community Expert
    June 10, 2011

    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

    @petergrainge

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.