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.
Procedure
- In the template editor, select the Master Page tab.
- 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.
- Save the changes.
Example
This examples creates a footer using a table element to
space out the content.
- Create a master page.
- From the Outline view, drag the master page into an element in
the template editor.
- In the Master Page tab of the editor, add the
Table element
to the bottom of the template.
- Enter one row and two columns for the table element and click OK.
- In the first cell, insert a
Text element.
- Double-click the text element and enter IBM Rational
Publishing Engine.
- In the second cell, insert a
Text element,
Page
Number element, a second
Text element,
and a
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.
- Select the table element to add formatting:
- Click . 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 .
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.
- Select the first cell to add formatting:
- Click . Click the ellipsis,
select bottom left, and click OK.
- Click cell width. Click the ellipsis, enter 400,
and click OK.
- Select the second cell to add formatting:
- Click . Click the ellipsis,
select bottom right, and click OK.
- Click cell width. Click the ellipsis, enter 100,
and click OK.
- Save the changes.
Template example:
Output example: