Template page numbering requirement

I have a writer document template with the page number in the footer.

In use I want the page number to be absent if the document only has one page. If the document has two or more pages I want the page number to be present on all pages.

My question is how to do it?

My only idea is with the template to initially set the font colour of the page number to white i.e. invisible.
Then with a macro be able to code the condition if the total number of pages is more than 1 set the font colour black.
(I already have a macro that does some pre and post save activities.)

Hi

It is possible for example by inserting a field: InsertFieldsMore FieldsFunctions tab, Hidden paragraph, Condition: page == 1

Try to add one (more) page in ConditionalFooter.odt

(note: use View menu to toggle Hidden Paragraphs)

Regards

Thanks - that’s both extremely prompt and most excellent!