About Arbortext Styler > Creating Headers and Footers > Adding Content to a Header or Footer
  
Adding Content to a Header or Footer
Generated Content objects define generated text content for a page region. You will most likely use this kind of content for a header or footer. Choose the Insert > Generated Content menu option to create a new Generated Content object.
Once you have created and configured the Generated Content object, you reference it from the page region that represents your header or footer. You will subsequently reference the page region from the page type that provides the layout for the pages on which you want your footer to appear.
It is possible to include the following items in a Generated Content object. They are all configured using the Generated Text Editor, accessed via the Edit button in the properties area of the Generated Contents list:
Graphic: use the Insert > Graphic menu option.
Markup: use the Insert > Markup menu option.
Symbols: use the Insert > Symbol menu option.
Tables: use the Insert > Table menu option
Division references: use the Insert > Division Reference menu option
Page numbers: use the Insert > Page Number and Insert > Final Page Number menu options
Element and attribute content: use the Insert > Element Content and Insert > Attribute Content menu options
Leaders, rules, and space fills: use the Insert > Leaders, Rule or Space menu option
Example: Adding Content to a Header
The procedure below details how to create a header that contains basic content made up of some static text and a logo.
1. In the Generated Contents list The Headers list icon - a text box containing horizontal lines of text, use the Insert > Generated Content menu option to create a new Generated Content object. Name it bodypage-header.
2. Highlight bodypage-header, and click the Edit button in the list's properties area to open the Generated Text Editor. Add the text Header for test document in the center cell of the table.
3. Highlight the text you have just typed and choose the Format > Font menu option in the Generated Text Editor. The Modify Font dialog box opens.
4. In the dialog box, set the Bold field to Yes and the Color field to Red. Click OK to save the changes and exit the dialog box. The text is now surrounded by a _font tag pair.
5. Place your cursor in the right hand cell of the table. Choose the Insert > Graphic menu option to open a directory browser with which you can navigate to the logo you wish to display in the header.
6. Navigate to the required logo. Click Open to insert the graphic into the right header cell, preceded by a _gentextgraphic tag.
7. Highlight the graphic, including the _gentextgraphic tag, and click Edit > Modify Attributes to open the Modify Attributes dialog box for the graphic.
8. Scale the graphic if required. Click OK to save the changes and exit the dialog box.
When a graphic is resized, it may cause a resize of the table cells. The text may not be centred next to the logo. This will be corrected in the next step.
9. Highlight the text in the middle cell, including its _font tags, and choose the Table > Table Properties menu option. The Table Properties dialog box opens. Click on the Cell tab.
10. Set the vertical justification of the cell to Centered. Click OK to save the change and exit the dialog box. The text is now centered vertically in the middle cell of the table.
11. Choose File > Apply and Close to save the new header configuration and exit the Generated Text Editor. You will see that the read only field in the properties area of the Headers list describes the generated text settings you have made for your header object.
12. Navigate to the Page Regions list. Select the page region that represents your header and go to the Text category.
13. In the Type field, select Generated.
14. In the Generated Content field, select the Generated Content object you have just created.
15. Add any alignment or padding for the content in the region.
You have now completed the creation of content for your header.
16. If you have not already done so, assign the page region representing your header to the page type representing the layout of the pages that should display your header.
17. Assign the page type to the relevant page set, if you have not already done so.
18. Choose the Preview > Print menu option. You will see that the header is displayed on the relevant pages of the previewed document.