Create a simple template that displays a two column, two
row table.
In the first lesson, you are creating the basic structure
for the template and adding simple formatting. By using a table, the
data is easily scannable in the published output.
- Open the Document Studio application.
- Click .
- Optional: Enter the metadata for the template:
- Name: Creating a custom attribute tutorial
- Description: A test template for understanding
how custom attributes work.
You are not required to enter metadata, but if your templates
are being reused by other people in your organization, it helps for
them to understand why this template was created or how to use it.
- Click Finish.
- Select Template version 2 and click OK.
- From the Palette view, drag add a
Table element into the template
content editor.
- In the New table window, enter 2 rows
and 2 columns. The first column
is for displaying the Full Tag information and the second column is
for a custom variable that is selected at run time.
- Add formatting to the header row of the table. Rational® Publishing Engine comes
with several predefined styles you can use. The HeaderCell style
applies bold formatting to the header row of the table. The first
row of the table is the header row.
- From the Outline view, expand Styles.
- Drag the HeaderCell style into
each one of the Cells in the first row.
- Drag a
Text element to each one of the
cells.