How to hide dictionary items from TOC if they are inserted into content as a abbreviated form?

Having trouble installing Oxygen? Got a bug to report? Post it all here.
DAN SEA
Posts: 59
Joined: Tue Sep 13, 2022 4:13 pm

How to hide dictionary items from TOC if they are inserted into content as a abbreviated form?

Post by DAN SEA »

Hi all!
I 'm done the following steps and have a problem:

1. sub-map (with dictionary items) inserted into main map;
2. each item has a "key", therefore each of them can be accessed from the "DITA Reusable Components"
3. some of the items inserted into content as a keyrefs/abbreviated form
4. each items attribute ''toc" - toggled into ''no" (to hide them from toc).

But there is a problem: I can't hide this items, inserted as a abbreviated form - from toc (in bookmarks)! (Despite to toc=no toggled attribute).

How i can fix this? Thanks in advance, for attention to my question!
julien_lacour
Posts: 498
Joined: Wed Oct 16, 2019 3:47 pm

Re: How to hide dictionary items from TOC if they are inserted into content as a abbreviated form?

Post by julien_lacour »

Hello,

Could you give us more information:
  • Which version of Oxygen are you using?
  • Which transformation scenario are you using? (DITA Map PDF - based on XSL-FO or DITA Map PDF - based on HTML5 & CSS)
Regards,
Julien
DAN SEA
Posts: 59
Joined: Tue Sep 13, 2022 4:13 pm

Re: How to hide dictionary items from TOC if they are inserted into content as a abbreviated form?

Post by DAN SEA »

Hello, Julien!
I'm using Oxygen XML Editor 24.1,
and transformation scenario, - based on HTML5 & CSS.
Thanks!
julien_lacour
Posts: 498
Joined: Wed Oct 16, 2019 3:47 pm

Re: How to hide dictionary items from TOC if they are inserted into content as a abbreviated form?

Post by julien_lacour »

Hello,

If you just want to remove the <glossAcronym> element from the bookmarks you can use the following CSS rule:

Code: Select all

*[class ~= "glossentry/glossAcronym"] {
  bookmark-label: none !important;  
}
Regards,
Julien
DAN SEA
Posts: 59
Joined: Tue Sep 13, 2022 4:13 pm

Re: How to hide dictionary items from TOC if they are inserted into content as a abbreviated form?

Post by DAN SEA »

Thanks a lot, Julien!
It's really works! :-)
julien_lacour
Posts: 498
Joined: Wed Oct 16, 2019 3:47 pm

Re: How to hide dictionary items from TOC if they are inserted into content as a abbreviated form?

Post by julien_lacour »

Hello,

Since Oxygen 25.0 this rule has been added to the default CSS rules for the DITA Map PDF - based on HTML5 & CSS.

Regards,
Julien
Post Reply