Page 1 of 1

Filtering webhelp with URL variables

Posted: Wed Dec 14, 2016 11:09 pm
by kmank
Hello,
I am being asked if filtering the webhelp content is possible using url variables (i.e. <path>?product="XXX"). So that, if a URL is passed with a specific product variable, we can filter visible content dynamically.

I guess what I need for initial direction is:
- how to add script code IMMEDIATELY following the body tag of output pages
- how to add script IMMEDIATELY before the /body tag
(is there a specific file that these can be inserted into?)
- can this concept be realized to include the navigation TOC?

I understand this may be a lofty request, but it doesn't sound unreasonable. Any direction is greatly appreciated!

Re: Filtering webhelp with URL variables

Posted: Wed Dec 14, 2016 11:11 pm
by kmank
Sorry... got ahead of myself.
I am using O18 with the DITA-OT that came with it.

Re: Filtering webhelp with URL variables

Posted: Thu Dec 15, 2016 3:56 pm
by radu_pisoi
Hi,

At this moment, it is not possible to filter the WebHelp content for a certain product. We have plans to implement this functionality in a future WebHelp version.

I'm not sure if the WebHelp output is ready to implement this feature.
- how to add script code IMMEDIATELY following the body tag of output pages
- how to add script IMMEDIATELY before the /body tag
(is there a specific file that these can be inserted into?)
The WebHelp Responsive template contains a series of component placeholders. Each such placeholder has an associated parameter in the transformation scenario Parameters tab. For your case, I think you can use the following parameters webhelp.fragment.before.body and webhelp.fragment.after.body.

See more details about WebHelp predefined placeholders in our documentation:
http://oxygenxml.com/doc/versions/18.1/ ... ation.html

Re: Filtering webhelp with URL variables

Posted: Thu Dec 15, 2016 5:43 pm
by kmank
Thank you, Radu.