Page 1 of 1

Only show child links in certain topics

Posted: Mon Jul 04, 2022 5:27 pm
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

Re: Only show child links in certain topics

Posted: Wed Jul 06, 2022 11:17 am
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

Re: Only show child links in certain topics

Posted: Fri Jul 08, 2022 2:12 pm
by ahiggins
Okay, thanks Alin!