Filtering webhelp with URL variables

<oXygen/> general issues.
kmank
Posts: 79

Filtering webhelp with URL variables

Wed Dec 14, 2016 11:09 pm

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!
kmank
Posts: 79

Re: Filtering webhelp with URL variables

Wed Dec 14, 2016 11:11 pm

Sorry... got ahead of myself.
I am using O18 with the DITA-OT that came with it.
radu_pisoi
Posts: 324
Location: Craiova

Re: Filtering webhelp with URL variables

Thu Dec 15, 2016 3:56 pm

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
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
kmank
Posts: 79

Re: Filtering webhelp with URL variables

Thu Dec 15, 2016 5:43 pm

Thank you, Radu.

Return to “Other Issues”

Who is online

Users browsing this forum: No registered users and 3 guests