Hiding page layers¶
The only property for a page layer is to hide it. This option is available in the Page Layer Expert and can be set by a function, which opens up the interesting possibility of using a different page layer on a different page. For instance, in a double-sided document, you may want the company logo to be on the right for odd pages and on the left for even pages. Additionally, you can define a completely different front page. The codes below achieve that.
// Function Field IsFirstPage
return {&Page Number} = 1
// Function Field IsEvenPage
let result = mod({&Page Number}, 2)
return result = 0
// page layer TitlePage – hide function
return not {@IsFirstPage}
// page layer EvenPage – hide function
return not {@IsEvenPage}
// page layer OddPage – hide function
return ({@IsEvenPage} or {@IsFirstPage})