Skip navigation
JustinKelley68
Currently Being Moderated

Making text display with conditional build expression

Jun 12, 2012 2:24 PM

I'm having problems getting images and text strings to display in my single-source outputs. I have strings and images that have multiple build tags applied to them, and when I try to build for one of my SSLs, those strings and images don't show up because of multiple tags applied to them.

 

For example, I have a string that has the conditions A, B, C, D, and E applied to it. (These are not the actual condition names; just for this thread's purposes). I want to generate the C output and have the string display, even though it has the other conditions applied to it.

 

Peter Grainge: I read the Build Expressions wiki on your page and tried this combination (C AND NOT A AND NOT B AND NOT D AND NOT E). Sometimes I got the result I expected (the string displayed), and other times not (no string or image displayed), even though strings had the same conditions applied to them.

 

Any idea why it's not working? Does the order of the conditions matter? e.g., the way you use them on the string, they should appear in that order in the build expression?

 
Replies
  • Currently Being Moderated
    Jun 13, 2012 11:23 AM   in reply to JustinKelley68

    Difficult one. I don't think the order is important, what matters is what you include and exclude and your expression prima facie makes sense.

     

    I would step away from the real project and set up a simple test project as I did for the expressions download on my site. That often makes is easier to see what is going on and get things working. Then you can apply your expression in your live project.

     


    See www.grainge.org for RoboHelp and Authoring tips

     

    @petergrainge

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 15, 2012 3:06 PM   in reply to JustinKelley68

    I've also run into this problem and I could not get the build tags to build correctly in an output. If I did it in a simple project, it sometimes worked, but once applied to even a single topic in a larger project, it broke.

     

    What I've found most effective is to use all exclude conditions; tag everything the opposite of what you want it to be. In your example above, if you only have the five conditions applied to a string of text or to images, in the SSL make the output be only NOT A AND NOT B AND NOT D AND NOT E. If you don't specify a build tag in the SSL, it is output in the final build. (EDIT: Granted, with that setup, the text will always output. Even with your original SSL statement, the text will output since it's tagged C.)

     

    Or, as another example, I have stuff needs to be output in only one build for developers and another build for the help users. Anything that is going to be included for the developers is tagged not_help (that's the build tag name). Then in my SSL for the developer output, I don't include this tag. As a result, RH outputs everything (the whole paragraph below in example text is output). For the help build, I have NOT not_help included in the SSL. As a result of that, the help build leaves out the tagged content (only the first sentence of the paragraph below in example text is output).

     

    Example text:

    This is an example text. <not_help>This information is not be included in the help.</not_help>

     

    One of our projects contains many such tags for roles (role1, role2, role3, role4, for example). Some topics need to be output for role1 and role3, so for that build expression in the SSL we simply put NOT role2 AND NOT role4. We don't mention the other tags (role1 or role3), so those tags are brought into the output.

     

    It seems to be easier in RH to specify what is not included than to specify what should be included. Once you specify one thing to include, you have to specify them all (at least that's been my experience).

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 18, 2012 2:37 AM   in reply to mcallit82

    Generally Exclude expressions are the easiest and are probably the first option to go for but there are times when they will exclude stuff you want in.

     


    See www.grainge.org for RoboHelp and Authoring tips

     

    @petergrainge

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 18, 2012 7:14 AM   in reply to JustinKelley68

    Glad you have resolved it. The whole thing comes back to working out tags that fit your scenario.

     

    Speed is affected by your PC, the number of topics, the number of images and bloat in the CPD. I am assuming your project is stored locally and that you have all patches applied.

     


    See www.grainge.org for RoboHelp and Authoring tips

     

    @petergrainge

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 18, 2012 11:18 AM   in reply to JustinKelley68

    That is a very small project. Have you tried opening the Salesbuilder sample project and comparing? It is smaller than your project but larger than the other sample.

     

    Click Open on the RoboHelp Starter page and then click Samples in the ribbon on the left.

     

    You have pointed to a potential cause but not indicated whether or not you have publish locations with lots of URLs.

     

    Next step would be to create two copies of your project and in each half trash a different half of the topics. Ignore broken links. Does one half then work quicker?

     

    Just how bad is this slowness?

     


    See www.grainge.org for RoboHelp and Authoring tips

     

    @petergrainge

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 18, 2012 12:31 PM   in reply to JustinKelley68

    Hi there

     

    Slowness is horrible?

     

    Please click File > Rename project and copy what is in the field. Then cancel the dialog. Post that result into a reply.

     

    Cheers... Rick

     

    Helpful and Handy Links

    RoboHelp Wish Form/Bug Reporting Form

    Begin learning RoboHelp HTML 7, 8 or 9 within the day!

    Adobe Certified RoboHelp HTML Training

    SorcerStone Blog

    RoboHelp eBooks

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 18, 2012 1:09 PM   in reply to JustinKelley68

    My bad

     

    I need to see what appears at the bottom of the dialog.

     

    tmp1.PNG

     

    Cheers... Rick

     

    Helpful and Handy Links

    RoboHelp Wish Form/Bug Reporting Form

    Begin learning RoboHelp HTML 7, 8 or 9 within the day!

    Adobe Certified RoboHelp HTML Training

    SorcerStone Blog

    RoboHelp eBooks

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2012 1:19 AM   in reply to JustinKelley68

    I suspect Rick's thinking was checking on either a network drive or a very long path.

     

    Yes Salesbuilder is from RoboHelp 9 so try whatever shipped with 8.

     


    See www.grainge.org for RoboHelp and Authoring tips

     

    @petergrainge

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 20, 2012 12:10 PM   in reply to JustinKelley68

    The CPU will always show as maxed out. Ignore that.

     

    Open any sample or create a new project. Still slow?

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 21, 2012 12:08 AM   in reply to JustinKelley68

    OK so that establishes it is something about your project.

     

    I'm thinking that given the project is relatively small, it might be quicker to create a new project and starting importing the topics. Test every so often by closing and reopening and generally testing what is slow. Chances are it will fix the problem but if not, you should see where it goes belly up.

     

    Anything else is trial and error and in this case will overall take longer.

     


     

    See www.grainge.org for RoboHelp and Authoring tips

     

    @petergrainge

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points