Hiding shortdesc in related informations

arnaud
Posts: 7
Joined: Fri Mar 23, 2018 1:16 pm

Hiding shortdesc in related informations

Post by arnaud » Tue May 08, 2018 12:23 pm

Hello,

Context : XML Author 20.0, build 2018032903, Transformation WYSIWYG with PDF chemistry

I want to hide the shortdesc contained in the links (related informations) created via a relation table.

I found this answer topic6842.html, but it seems to be obsolete.

Thanks in advance,
Arnaud

Dan
Posts: 408
Joined: Mon Feb 03, 2003 10:56 am

Re: Hiding shortdesc in related informations

Post by Dan » Wed May 09, 2018 9:39 am

The link descriptions coming from the DITA relationship tables or from in-topic related links elements are structured in the merged map as:

Code: Select all


<related-links class="- topic/related-links ">
<linkpool class="- topic/linkpool ">
<link class="- topic/link "
...
role="friend" scope="local" type="topic">
<linktext class="- topic/linktext ">Salvia</linktext>
<desc class="- topic/desc ">The salvia plant</desc>
</link>
</linkpool>
...
</related-links>
If you need to hide these descriptions then add in your customization css:

Code: Select all


*[class ~= "topic/link"] > *[class ~= "topic/desc"] {
display: none;
}
Many regards,
Dan

arnaud
Posts: 7
Joined: Fri Mar 23, 2018 1:16 pm

Re: Hiding shortdesc in related informations

Post by arnaud » Wed May 09, 2018 9:44 am

Works perfectly :D

Thanks

Post Reply