Page 1 of 1

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

Posted: Tue Sep 13, 2022 4:29 pm
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!

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

Posted: Wed Sep 14, 2022 10:20 am
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

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

Posted: Wed Sep 14, 2022 3:14 pm
by DAN SEA
Hello, Julien!
I'm using Oxygen XML Editor 24.1,
and transformation scenario, - based on HTML5 & CSS.
Thanks!

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

Posted: Wed Sep 14, 2022 5:27 pm
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

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

Posted: Wed Sep 14, 2022 5:53 pm
by DAN SEA
Thanks a lot, Julien!
It's really works! :-)

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

Posted: Fri Mar 17, 2023 5:26 pm
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