3 Replies Latest reply on Jun 10, 2011 6:05 AM by Peter Grainge

    which areas of a topic can use conditional text?

    hecjen

      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

        • 1. Re: which areas of a topic can use conditional text?
          Peter Grainge Adobe Community Professional

          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

          • 2. Re: which areas of a topic can use conditional text?
            hecjen Level 1

            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?

            • 3. Re: which areas of a topic can use conditional text?
              Peter Grainge Adobe Community Professional

              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