Hiding shortdesc in related informations

Having trouble installing Oxygen PDF Chemistry? Got a bug to report? Post it all here.
arnaud
Posts: 7
Joined: Fri Mar 23, 2018 1:16 pm

Hiding shortdesc in related informations

Post by arnaud »

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: 501
Joined: Mon Feb 03, 2003 10:56 am

Re: Hiding shortdesc in related informations

Post by Dan »

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 »

Works perfectly :D

Thanks
Post Reply