How to make the content start on odd/even page?


Sometimes it is required to start an actual content on odd/even page. How do I do it without creating different templates for each combination when TOC spans across odd/even amount of pages?


To start the content from an odd page, add this code at the end of the Content formatting:

Start from odd page
div.wikicontent { 
page-break-before: right; 

This would make a page break (a blank page) if the content doesn't start with odd page. If the TOC spans across even amount of pages, then there would be no page breaks. 

To make the content start from an even page, change the code to:

Start from even page
div.wikicontent { 
page-break-before: left;