< Previous | Next >

Lesson 1: Create a template and add elements

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.
  1. Open the Document Studio application.
  2. Click File > New > Document Template.
  3. 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.
  4. Select Template version 2.
  5. Click Finish.
  6. Click File > Save and save the template to your computer. Example: C:\tutorial_resources\tutorialSpecialAttributes.dta
  7. From the Palette view, drag add a Table element icon Table element into the template content editor.
  8. 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.
  9. 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.
    1. From the Outline view, expand Styles.
    2. Drag the HeaderCell style into each one of the Cells in the first row.
  10. Drag a Text element icon Text element to each one of the cells.
  11. Save the changes.
Result:
Template result

Lesson checkpoint

You created a template, added elements, and added formatting.
< Previous | Next >

Feedback