Page numbers to display as "2 of 5,"

Hi, I’m working on my parts and trying to set the page numbers to display as “2 of 5,” “3 of 5,” and so on. I went to the Engrave mode on the left panel, opened the page template, clicked on “Default,” and inserted the code { @page@ } of { @totalPages@ } on the top left, but it’s not working. It partially works on page 4, but nothing appears on page 2.

I tried extending the text box where the code should appear using the handles to make it longer, but that didn’t solve the issue.
Can someone help me with this?
Thank you.

It hink you would need to share a (strippe down version of your) file so we can help you :slight_smile:

If you already have page overrides on any of those pages, then they won’t update when you make an edit to the Default template. The override specifically tells Dorico NOT to update it as you’re handling that page manually. If you have little red triangles in the Pages panel, that means you have an override. Right-click and remove the override and it should update.
override

Great I removed the override.
Now i get this

On the left page you have (@ not {@ so that is obviously a typo. On the right page the text frame isn’t large enough to fit.

I am almost there…
Now I see this

It’s called “pagecount” not “TotalPages.”
Right-clicking in the text box gives a drop-down list of possible tokens.

1 Like

Hourra !!! Thanks

1. Remove Page Overrides: If there are any page overrides, they will prevent updates from the Default template. Check the Pages panel for red triangles, which indicate overrides. Right-click on them and select Remove Override.
2. Correct the Code: Make sure the code in the text box is correct. It should be { @page@ } of { @pagecount@ } instead of { @page@ } of { @totalPages@ }. To find the correct tokens, right-click inside the text box, and a drop-down list of available tokens will appear.
3. Ensure Text Frame is Large Enough: Verify that the text frame where you’ve placed the code is large enough to display the page numbers correctly. Use the handles to extend the frame if necessary.
2 Likes