Ask Your Question
0

template page numbering requirement [closed]

asked 2015-11-18 15:54:56 +0100

jay Arr gravatar image

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.)

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2016-03-14 00:13:56.352418

1 Answer

Sort by » oldest newest most voted
2

answered 2015-11-18 16:41:13 +0100

pierre-yves samyn gravatar image

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

edit flag offensive delete link more

Comments

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

jay Arr gravatar imagejay Arr ( 2015-11-18 17:02:39 +0100 )edit

Question Tools

1 follower

Stats

Asked: 2015-11-18 15:54:56 +0100

Seen: 50 times

Last updated: Nov 18 '15