Idea Delivered

This feature is being delivered in XPP 9.4.

implement a counter named 'pagenumber' that is hooked to %p4

Why?

Currently users need to know that the page number is sitting in something called %p4 and need to know the correct macro in order to read out the page number.
So people have to know that they have to use a construct like:

content: -xpp-perl(macro, 'ri', '%p4');

Implementation

have a reserved counter name that is connected to %p4

This will allow to be used in a 'content' property as:

content: counter(pagenumber);

Goal

  • create a system that is more CSS aware
  • make it easier on novice users
Parents
  • Agreed. tI should be 'page' since that is the CSS standard name. I would also suggest that since you requested 'page', the 'pages' counter is probably a good thing to also have. After all, it is really just the '%totpage' system variable, so that would be useful also.

Comment
  • Agreed. tI should be 'page' since that is the CSS standard name. I would also suggest that since you requested 'page', the 'pages' counter is probably a good thing to also have. After all, it is really just the '%totpage' system variable, so that would be useful also.

Children
No Data