Skip to main content
Inspiring
May 4, 2022
Answered

Can you specify content conditions to be applied at a TOC level?

  • May 4, 2022
  • 2 replies
  • 220 views

(I'm using the latest version of RH2020, frameless skin.)

I have my TOC separated into product sections. Some of my topics for each product are almost identical, but with a few minor differences (particularly cross references to other topics that are vastly different between the two products). What I want to do is condition the product-specific content within one topic so that I can just reuse the topic within each product section. But I don't want Product A content to appear in the output of the topic when it's in the Product B section, and vice versa. That is, I don't want the reader to have to use a dynamic filter to hide the content (because I'm not confident they'll figure that out and will just be confused). I want it hidden within the output. Is there a way to accomplish this with conditional tags?

 

That likely didn't make sense, so to elaborate: I want to be able to say, on output, any topic within the Product A section in my TOC should only output with Product A content, and any topic within the Product B section in the TOC should only output Product B content. This way I can reuse topics between the two. 

    This topic has been closed for replies.
    Correct answer Jeff_Coatsworth

    If you were creating 2 separate outputs, then yes that would work with conditions inside your snippets, but I'm pretty sure you can't mix & match conditional show/hide stuff within the same output without going the dynamic route.

    2 replies

    Peter Grainge
    Community Expert
    Community Expert
    May 4, 2022

    Not disagreeing but it's always worth setting up a small project as a proof of concept.

    ________________________________________________________

    My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

     

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Jeff_Coatsworth
    Community Expert
    Jeff_CoatsworthCommunity ExpertCorrect answer
    Community Expert
    May 4, 2022

    If you were creating 2 separate outputs, then yes that would work with conditions inside your snippets, but I'm pretty sure you can't mix & match conditional show/hide stuff within the same output without going the dynamic route.

    Inspiring
    May 4, 2022

    Sad day. Okay, thanks.