Welcome to this LibreOffice Writer video We’ll see how a template’s header/footer can be dynamic based on number of pages We would like there to be no page number if the document has only one page but it is there on all the pages if there are several Let’s see how to proceed with a new document insertion of the footer (the place in the menu depends on your version) Insert fields Page number and Page count Hide/Show the footer is set by Insert> Field>More fields … Functions tab>Hidden Paragraph>Condition>page==1 Warn: here “page” (singular) represents the total number of pages, not the current page number Our document has only 1 page>condition is checked>paragraph is hidden We can force its display: menu View>Hidden Paragraphs (add this entry by Tools>Customize if necessary) set entire page view: 1 page>no text, several pages>text