Page 1 of 1

How to hide some topics

Posted: Wed Jun 22, 2022 1:21 pm
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?

Re: How to hide some topics

Posted: Wed Jun 22, 2022 2:40 pm
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

Re: How to hide some topics

Posted: Thu Jun 23, 2022 5:40 am
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!

Re: How to hide some topics

Posted: Tue Sep 27, 2022 3:04 pm
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?

Re: How to hide some topics

Posted: Tue Sep 27, 2022 3:06 pm
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?

Re: How to hide some topics

Posted: Wed Sep 28, 2022 4:00 am
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!

Re: How to hide some topics

Posted: Mon Oct 10, 2022 11:04 am
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

Re: How to hide some topics

Posted: Mon Oct 10, 2022 2:54 pm
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?