jgraph / drawio

draw.io is a JavaScript, client-side editor for general diagramming.
https://www.drawio.com
Other
41.35k stars 7.67k forks source link

%pagecount% and background pages #4628

Open cameronweston opened 2 months ago

cameronweston commented 2 months ago

Discussed in https://github.com/jgraph/drawio/discussions/3378

Originally posted by **jwilliams-shadowsoft** February 22, 2023 I love the fact that drawio now has background pages. I'm an engineer, and when I make technical drawings for my customers the pagination is always of the form: ``` Page %pagenumber% of %pagecount% ``` However, if I use both background pages and `%pagecount%` the background page gets counted in the number of pages. This is expected because a background page is no different from a regular page. I don't see how this behavior could easily be changed with the current data schema within drawio. Does anyone have any ideas about ways that I could cheat? Like defining some sort of custom property that has the value `%pagecount% - 1`? It's okay if it's a little hackey.