Reltable links showing shortdescs

Post here questions and problems related to editing and publishing DITA content.
Stacey
Posts: 66
Joined: Tue Mar 14, 2017 12:36 am

Reltable links showing shortdescs

Post by Stacey »

Hi There:

We've had a problem recently where shortdescs are showing in links created using RelTables.
I'd thought there was a property about this, but couldn't find it; I did find some older threads here that mentioned updating the CSS.
I tried 26.1 (no CSS updates) and it's acting how I expected (no shortdescs).
Were updates done in 27.1 to make showing these the default? Is this a bug? If not, what's the best way of hiding these?
(Ignore the whitespace, I just added a white box there.)
shortdescsinlinks.png
Bonus question: "Caution recommended for this feature." is alt text for an image. Is there a way to hide that/show the image in the visible shortdesc?
You do not have the required permissions to view the files attached to this post.
julien_lacour
Posts: 679
Joined: Wed Oct 16, 2019 3:47 pm

Re: Reltable links showing shortdescs

Post by julien_lacour »

Hello,

Since Oxygen 27.0, by default, if the target of a related-link includes a short description, that description will appear as text beneath the link.
However, it is possible to remove this text by adding one of the following rules in a CSS stylesheet:

Code: Select all

.wh_related_links .desc {
  display: none;
}

Code: Select all

.wh_related_links *[class ~= "topic/desc"] {
  display: none;
}
Regarding the bonus question, it is not possible to show the image instead of the text under the link.

Regards,
Julien
Stacey
Posts: 66
Joined: Tue Mar 14, 2017 12:36 am

Re: Reltable links showing shortdescs

Post by Stacey »

Hi Julien:

Yes, that did the trick. Thank you!
Post Reply