Page 1 of 1

Hiding shortdesc in related informations

Posted: Tue May 08, 2018 12:23 pm
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

Re: Hiding shortdesc in related informations

Posted: Wed May 09, 2018 9:39 am
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

Re: Hiding shortdesc in related informations

Posted: Wed May 09, 2018 9:44 am
by arnaud
Works perfectly :D

Thanks