|
Master PagesIn Print sections, there are often elements that need to be repeated across pages, like headers, footers and logos. In addition, some elements should appear only on specific pages, such as only the first page, or the last page, or only on pages in-between. Examples are a different header on the first page, and a tear-off slip that shows up on the last page. This is what Master Pages are used for. Master Pages can only be used in the Print context (see Print context). Master Pages resemble Print sections, and they are edited in much the same way (see Editing a Master Page) but they contain a single page and do not have any text flow. Only one Master Page can be applied per page in printed output. Then a Print template is created, one master page is added to it automatically. You can add more Master Pages; see Adding a Master Page. Initially, the original Master Page will be applied to all pages, but different Master Pages can be applied to different pages; see Applying a Master Page to a page in a Print section. ExamplesThere are a few How-tos that demonstrate the use of Master Pages:
Adding a Master PageWhen a Print template is created, one master page is added to it automatically. Adding more Master Pages can be done as follows:
Initially, the master page that has been created together with the Print context will be applied to all pages in the Print section. After adding more Master Pages, different Master Pages can be applied to different pages; see Applying a Master Page to a page in a Print section. Editing a Master PageMaster Pages are edited just like sections, in the workspace. To open a Master Page, expand the Master pages folder on the Resources pane, and double-click the Master Page to open it. A Master Page can contain text, images and other elements (see Content elements), including variable data and dynamic images (see Personalizing Content). All elements on a Master Page should have an absolute position or be inside an element that has an absolute position. It is good practice to position elements on a Master Page by placing them in a Positioned Box (see Content elements). Keep in mind that a Master Page always remains a single page. Its content cannot overflow to a next page. Content that doesn't fit, will not be displayed. Editing the Master Page is optional. One Master Page must always exist in a Print template, but if you don't need it, you can leave it empty. Adding a header and footerHeaders and footers are not designed as part of the contents of a Print section, but as part of a Master Page, which is then applied to a page in a print section. To create a header and footer:
Applying a Master Page to a page in a Print sectionEvery page in a print section has a natural position: it can be the first page, the last page, one of the pages in between (a 'middle page'), or a single page. For each of those positions, you can set a different Master Page and Media (see Media). It can even have two master pages, if printing is done on both sides (called duplex printing). To apply Master Pages to specific page positions in a Print section:
Deleting a Master PageTo delete a Master Page, expand the Master pages folder on the Resources pane, right-click the master page, and click Delete. Note that one Master Page as well as one Media must always exist in a Print template. Just leave it empty if you don't need it. |
|