Adding dynamic content to a master page
You can render data inside master pages in Rational® Publishing Engine by
creating variables and assigning them attributes.
Before you begin
- In the Outline view, right-click Master Pages and select .
- Enter the name, description, orientation, and page size for the master page.
- Click OK to save the changes.
Create a variable for the master page:
See Defining and assigning variables for more information.- In the Outline view, right-click Variables and select .
- Enter the name, description, and default value.
- Select internal variable, so it does not appear in the output.
- Click OK to save the changes.
About this task
Procedure
- In the template editor, insert a
Container element. - Right-click the container element and select .
- Click Add.
- Select a variable and click OK.
- In the Set Assignments for Current Element window, click the Data Expression tab.
- Select an attribute to assign to the variable and click OK.
- Drag a
Paragraph element after
the container element. - From the Outline view, select a master page and drag it into the paragraph element.
- From the Palette view, drag a
Text element
into the paragraph element. - From the Data Source Schema, drag the _value into the text element.
- Save the changes.