Page 1 of 1

Page Linking via CSS

Posted: Sat Mar 02, 2019 4:09 am
by jcb
I'm using the paged-media CSS option of the below:

Code: Select all

a:after {
content: target-counter(attr(href), page);
}
in order to add page links to my Index. It works like a charm.

However, this also adds a page number after any element that contains an @href. For instance, I have figure/table links throughout the document, this will add a page number after that link (which I don't want and looks pretty bad):

AGIL, shown in Figure 2.123 - The figure is 2.1 and "23" is the page number.

Can I only output the page numbers for the Index links and suppress them for the figure/table links?

Re: Page Linking via CSS

Posted: Mon Mar 04, 2019 1:17 pm
by Costin
Hello,

In order to better notice what happens, please send us some sample files that we could use to reproduce this behavior, on our official support email: support@oxygenxml.com
Please send a DITA Map with in an as minimal form as possible, together with the customization CSS you are using.

Best Regards,
Costin