- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2023 01:56 PM - edited 07-31-2023 08:59 AM
I am building an HTML document template. I have a cover page, then 6 pages of content. I want to have the page numbering start with 1 on page 2 of the document. I cannot seem to get this to work. I can hide the footer on the first page, but the numbers on the second page start at Page 2 of X.
Has anyone successfully met this requirement with HTML document templates?
<style>
{
@bottom-center {
content: element(pageFooter);
}
}
@page:first {
@bottom-center {
content: normal
}}
#pageFooter{
position: running(pageFooter);
font-family: arial, helvetica, sans-serif;
font-size: 9pt;
}
</style>
<style>
:first {
@bottom-right {
content: normal;
}
}
{
@bottom-right {
counter-reset: Page 1
content: "Page " counter(page) " of " counter(pages);
font-family: arial, helvetica, sans-serif;
font-size: 9pt;
}
}
</style>
<div id="pageFooter">Document for ${u_employee_name} (${u_employee_id})</div>
Solved! Go to Solution.
- Labels:
-
Human Resources Service Delivery

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2023 05:47 AM
Everything I've read says we cannot manipulate the pages count (i.e., we can change the X, but not Y in "page X of Y"). I've been trying a lot of workarounds and tests, but haven't been successful in updating Y either.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2023 10:43 AM
You should be able to create a new "Page number configuration" (doc_page_number_config) record that says to start numbering from page 2, then select that on your HTML document template. You would select that in the "Page number" field on the document template (sn_doc_html_template).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2023 11:12 AM
Hi Susan. Thank you for your response. I can start numbering on page two, but only in the single page number format, not in the format "Page 1 of 10". Do you know if there is a way to build that as a page number configuration?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2023 07:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2023 06:13 PM
This is helpful, but I cannot get the counter to reset. It is hiding on first page, but page 2 is not reset to page 1.