Use the Add Promotions Template Building Block to insert code in your Web page for displaying Promotions.
Before you begin
To create templates you must have Template Management rights and Write permissions for the Folder in which you intend to create the template.
Procedure
- Open Template Builder.
- Open or Create a Compound Page Template.
- Make sure your Dreamweaver template has
<tcdl:region> tags, for example
<tcdl:region id="Sidebar" type="SmartTarget">
</tcdl:region>
- Add the Add Experience Optimization Query Template Building Block after the Dreamweaver Template (or equivalent output) in your Page Template.
- Add the Add Promotions Template Building Block after the Add Experience Optimization Query Template Building Block.
- Add the Apply Experience Optimization Settings Template Building Block at the end of the Page Template.
- Select the Add Promotions Template Building Block and define the attributes:
You can define the following attributes for
Add Promotions:
| Attribute | Description |
|---|
| Page Region* | Specify the region of your Web page where Promotional content is displayed. The value must correspond with an id value specified in the <tcdl:region> tag of a Dreamweaver Template exactly (Page Region values are case-sensitive). |
| Maximum items to display* | Specify the maximum number of content items allowed to be displayed in the Page Region for these Promotions. |
| HTML tag for inline editing | Specify the HTML tag used to enclose the Promotion markup for Experience Manager. If no value is specified, the HTML <span> is used. |
Note: Attributes marked with an asterisk (*) are mandatory.
- Select to run the template, or Debug > Run with Page if it is the first time you are running the Compound Template (you are prompted to select a Page).