Skip to main content
Participant
August 17, 2022
Question

Filtering via URL

  • August 17, 2022
  • 1 reply
  • 98 views

Hello,

we would like to use the functionality in RoboHelp to include oder exclude content from the output depending on filter criteria. These criteria habe to be included in the URL when calling the help 'website'.

  • So, first I create a tag (Is this really a contidional tag? Isn't it just a mark, as long as it isn't connected to a condition like 'if set, show/hide something?). Let's name it 'test-tag'. I put it into a group called 'mytags'.
  • I the apply this tag to a block of content.

And now?

  • Do I have to set up a Dynamic Content Filter? I don't want the user to have to choose the filter.
  • Do I have to set up a Condition Expression now? How would the output get to know what to do with the marked content (include/exclude)? If I do that (e.g. set 'exclude' for my tag), the content is always excluded - but I want to have it excluded only when the tag ist called via the URL. Seems the wrong way.
  • The docs say, there is a way to call a 'filter' via a URL: url?f=taggroup:tagname
    This only refers to the tag group and tag name which I set up in the first step, right?Or does the group/tag have to come in a 'container' (Condition Expression) which ist linked in the output profile?
  • Do I have to include anything in my output profile (Frameless) to make this URL call work?

Thanks for your help.

    This topic has been closed for replies.

    1 reply

    Community Expert
    August 18, 2022
    quote
    • Do I have to set up a Dynamic Content Filter? I don't want the user to have to choose the filter.

    Yes, I think you have to set up the DCF and select it in the output preset. Have a look at Peter's site for information about dynamic content filters.

    I think you should then be able to hide the filter icon in the skin. I haven't tried, so you'll have to poke around in the settings to try it out. I'd recommend practicing on a copy of your skin. in case something goes wrong. 

     

    quote
    • Do I have to set up a Condition Expression now? How would the output get to know what to do with the marked content (include/exclude)? If I do that (e.g. set 'exclude' for my tag), the content is always excluded - but I want to have it excluded only when the tag ist called via the URL. Seems the wrong way.

    You would only set up a condition expression if you want to generate an output that excludes specific tags from the output. Typically in this scenario you would set up several output presets with different condition expressions and generate multiple, separate outputs.

     

    quote
    • The docs say, there is a way to call a 'filter' via a URL: url?f=taggroup:tagname
      This only refers to the tag group and tag name which I set up in the first step, right?Or does the group/tag have to come in a 'container' (Condition Expression) which ist linked in the output profile?

    Yes, if you are using Frameless output this is the coding to apply DCFs using a URL. It refers to the group and condition tag you set up before. e.g. ?f=mytags:test-tag. Also see  my first answer about setting up the DCFs. If you are using Responsive, then I don't know if you can apply DCFs using a URL because of the iframes and different URL structure.

     

    quote
    • Do I have to include anything in my output profile (Frameless) to make this URL call work?

    See the first answer about setting up the DCF. Although, I'm not sure I've heard of people using it the way I think you want to, so it might not do exactly what you want. When you've tested it, please post back with what you find out.