Example: Adding a footer to a master page

When you create a master page, the footer element is 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 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. From the Outline view, drag the master page into an element in the template editor.
  2. In the Master Page tab of the editor, add the Table icon Table element to the bottom of the template.
  3. Enter one row and two columns for the table element and click OK.
  4. In the first cell, insert a Text icon Text element.
  5. Double-click the text element and enter IBM Rational Publishing Engine.
  6. 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.
    1. In the first text element, enter Page . Include a space after the text.
    2. In the second text element, enter of . Include a space after the text.
  7. Select the table element to add formatting:
    1. Select the Specific tab.
    2. For the Table auto fit, select autofit to window.
    3. For the Resize to fit contents property, select false.
    4. Select the Border tab.
    5. For the Style property, select none. By default, tables have this property set to create borders around all cells. For footers, you generally do not need borders displaying.
  8. Select the first cell to add formatting:
    1. Select the Specific tab.
    2. For the Cell alignment property, select bottom left.
    3. For the Cell width property, enter 400.
  9. Select the second cell to add formatting:
    1. Select the Specific tab.
    2. For the Cell alignment property, select bottom right.
    3. For the Cell width property, enter 100.
  10. Save the changes.

Example

Template example:

Template example

Output example:

Output example

Creating a footer that adjusts to the page layout

You can use a table element to design a footer that scales to both portrait and landscape layouts.

Procedure

  1. Create a master page.
  2. In the Master page view, drag a Table element into the Footer.
  3. Enter 1 row and 2 columns and click OK.
  4. Drag a Paragraph element into each cell.
  5. Select the first Paragraph element.
  6. In the Properties view, select the Padding, indents, and spacing tab.
  7. For Alignment, select Left.
  8. Select the second Paragraph element.
  9. In the Properties view, select the Padding, indents, and spacing tab.
  10. For Alignment, select Right.
  11. Drag a Text element into each paragraph element.
  12. Enter footer text into each Text element.
  13. Generate the output.

Feedback