Set up different master page for online and printed outputs

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:

  1. Go to the Topic Master Page settings.
  2. 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>
  3. Save changes.
  4. Publish the project using the OnlineDoc or the PrintedDoc output tag, depending on the output you need.