Adding a header and footer to a master page

When you create a master page, the header and footer elements are created automatically in the Master Page tab of the template editor. You can use the palette to drag elements in to construct the layout and style of your header and footer contained within the master page. Then, the master page can be reused across templates.

Before you begin

Create a master page. See Creating a master page for more information.

Procedure

  1. In the template editor, select the Master Page tab.
  2. Add elements to the header and footer by using one of these options:
    • Select the required elements from the Palette and drag them into the editor.
    • In the editor area, right-click the Header or Footer and click Insert.
    • In the Outline view, right-click the Header or Footer and select Insert.
  3. Save the changes.

Example

This examples creates a footer using a table element to space out the content.

  1. Create a master page.
  2. From the Outline view, drag the master page into an element in the template editor.
  3. In the Master Page tab of the editor, add the Table icon Table element to the bottom of the template.
  4. Enter one row and two columns for the table element and click OK.
  5. In the first cell, insert a Text icon Text element.
  6. Double-click the text element and enter IBM Rational Publishing Engine.
  7. In the second cell, insert a Text icon Text element, Page Number icon Page Number element, a second Text icon Text element, and a Total Page Number icon Total Page Number element.
    • In the first text element, enter Page . Include a space after the text.
    • In the second text element, enter of . Include a space after the text.
  8. Select the table element to add formatting:
    • Click Formatting > specific > table auto fit. Click the ellipsis, select autofit to window, and click OK.
    • Click resize to fit contents and deselect the check box to change the option to false.
    • Click Formatting > cell border > cell border style. Click the ellipsis, select none, and click OK. By default, tables have this property set to create borders around all cells. For footers, you generally do not need borders displaying.
  9. Select the first cell to add formatting:
    • Click Formatting > specific > cell alignment. Click the ellipsis, select bottom left, and click OK.
    • Click cell width. Click the ellipsis, enter 400, and click OK.
  10. Select the second cell to add formatting:
    • Click Formatting > specific > cell alignment. Click the ellipsis, select bottom right, and click OK.
    • Click cell width. Click the ellipsis, enter 100, and click OK.
  11. Save the changes.

Template example:

Template example

Output example:

Output example


Feedback