Only show child links in certain topics

Having trouble installing Oxygen XML WebHelp? Got a bug to report? Post it all here.
ahiggins
Posts: 12
Joined: Mon Jun 06, 2022 10:10 pm

Only show child links in certain topics

Post by ahiggins »

Hi,

I'm using Oxygen XML Editor v.24.0.
I use a Publishing Template to set parameters and other customizations. I've set webhelp.show.child.links="yes" but I only want child links to display in certain topics. Is there a workaround, or do I need to update my ditamaps to change this?

Thanks,
Amy
alin
Site Admin
Posts: 268
Joined: Thu Dec 24, 2009 11:21 am

Re: Only show child links in certain topics

Post by alin »

Hello,

There is no out-of-the-box solution to hide the Child Links component in some topics and have it displayed in other topics.
However, you can use a custom CSS to achieve this. The WebHelp Responsive output can be customized using CSS. You can find more details in our User Manual: https://www.oxygenxml.com/doc/versions/ ... h-css.html
You can set a custom @outputclass on the root of each topic where you want the Child Links component to be hidden:

Code: Select all

<topic id="care" outputclass="child-links-hidden">
    <title>Care and Preparation</title>
    <!-- [...] The rest of the DITA Topic -->
</topic>    
The value of the @outputclass will be transferred in the value of the @class attribute on the <body> element of the generated HTML output file.

Code: Select all

<body id="care" class="wh_topic_page child-links-hidden doc-ready">
  <!-- [...] -->
</body>
You can use the following CSS rule to hide the Child Links component:

Code: Select all

.child-links-hidden .wh_child_links {
  display: none;
}
Regards,
Alin
Alin Balasa
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
ahiggins
Posts: 12
Joined: Mon Jun 06, 2022 10:10 pm

Re: Only show child links in certain topics

Post by ahiggins »

Okay, thanks Alin!
Post Reply