How to hide some topics

Are you missing a feature? Request its implementation here.
felixliu
Posts: 18
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: 907
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: 18
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!
vidven
Posts: 3
Joined: Tue Sep 27, 2022 3:00 pm

Re: How to hide some topics

Post by vidven »

Have a doubt:

<val>
<prop att="deliveryTarget" action="exclude"/>
<prop att="deliveryTarget" val="olh" action="include"/>
</val>

What is the second line meant for? Is it mandatory?
vidven
Posts: 3
Joined: Tue Sep 27, 2022 3:00 pm

Re: How to hide some topics

Post by vidven »

<val>
<prop att="deliveryTarget" action="exclude"/>
<prop att="deliveryTarget" val="olh" action="include"/>
</val>

Dont understand the second line with "include" action. The intention is to exclude, correct?
chrispitude
Posts: 907
Joined: Thu May 02, 2019 2:32 pm

Re: How to hide some topics

Post by chrispitude »

Hi vidven,

It looks like I posted the wrong DITAVAL file. The file I posted shows only @deliveryTarget="olh" content.

The DITAVAL file I should have posted to hide @props set to any value is this:

Code: Select all

<val>
   <prop att="props" action="exclude"/>
</val>
Thanks for catching this!
vidven
Posts: 3
Joined: Tue Sep 27, 2022 3:00 pm

Re: How to hide some topics

Post by vidven »

Thanks, Chris.

Now one more doubt:
To make the change bar visible on TOC, I try to apply it to <Title> element. When published, it is prefixed with pageFist followed by the page name, which is weird and different from page titles of other pages.
However, this applies for a few such topics, not everywhere though.

What is the correct way to mark a topic in TOC to indicate that there is a change in that topic.

Regards,
Vidven
chrispitude
Posts: 907
Joined: Thu May 02, 2019 2:32 pm

Re: How to hide some topics

Post by chrispitude »

Hi vidven,

In this question, are you hiding topics with @props, or are you marking them as revised with @rev?

And can you confirm which transformation type (WebHelp or PDF Chemistry) this question is for?
Post Reply