How to hide some topics

Are you missing a feature? Request its implementation here.
felixliu
Posts: 12
Joined: Thu Jun 09, 2022 11:04 am

How to hide some topics

Post by felixliu »

Taking this page as an example, is there any way to hide some topics under Publishing? For example, if I want to hide Transformation Scenarios and all the topics under it, how can I achieve that?
chrispitude
Posts: 529
Joined: Thu May 02, 2019 2:32 pm

Re: How to hide some topics

Post by chrispitude »

Hi Felix,

If you want to exclude the topic from the navigation/TOC but keep the topic itself in the output, you could try setting the @toc="no" attribute on the topic reference in the map.

If you want to exclude the topic completely from the output, then you could set a profiling attribute like @props="hide" on the topic reference in the map, then apply a DITAVAL filtering file like this:

Code: Select all

<val>
    <prop att="deliveryTarget" action="exclude"/>
    <prop att="deliveryTarget" val="olh" action="include"/>
</val>
- Chris
felixliu
Posts: 12
Joined: Thu Jun 09, 2022 11:04 am

Re: How to hide some topics

Post by felixliu »

chrispitude wrote: Wed Jun 22, 2022 2:40 pm Hi Felix,

If you want to exclude the topic from the navigation/TOC but keep the topic itself in the output, you could try setting the @toc="no" attribute on the topic reference in the map.

If you want to exclude the topic completely from the output, then you could set a profiling attribute like @props="hide" on the topic reference in the map, then apply a DITAVAL filtering file like this:

Code: Select all

<val>
    <prop att="deliveryTarget" action="exclude"/>
    <prop att="deliveryTarget" val="olh" action="include"/>
</val>
- Chris
Thanks, my life saver!
Post Reply