In this article, you will learn how to configure different Master Page for Online and Printed outputs by adding conditional blocks to the topic header/footer markup.
To set up the master page specific for Online and Printed outputs simultaneously, please do the following:
- Go to the Topic Master Page settings.
- Insert the following markup into the Topic header HTML/Topic footer HTML field:HTML
<ch:include tags="OnlineDoc">
<p>
Your custom header/footer for Online Output
</p>
</ch:include>
<ch:include tags="PrintedDoc">
<p>
Your custom header/footer for Printed Output
</p>
</ch:include> - Save changes.
- Publish the project using the OnlineDoc or the PrintedDoc output tag, depending on the output you need.