Documentation Center

Adding Promotions to Page Templates

Use the Add Promotions Template Building Block to insert code in your webpage 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

  1. Open Template Builder.
  2. Open or Create a Compound Page Template.
  3. Make sure your Dreamweaver template has <tcdl:region> tags, for example
    <tcdl:region id="Sidebar" type="SmartTarget"> 
    
    </tcdl:region>
  4. Add the Add Experience Optimization Query TBB Template Building Block after the Dreamweaver Template (or equivalent output) in your Page Template.
  5. Add the Add Promotions Template Building Block after the Add Experience Optimization Query Template Building Block.
  6. Add the Apply Experience Optimization Settings Template Building Block at the end of the Page Template.
  7. Select the Add Promotions Template Building Block and define the attributes:
    You can define the following attributes for Add Promotions:
    AttributeDescription
    Page Region*Specify the region of your webpage 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 editingSpecify the HTML tag used to enclose the Promotion markup forExperience Manager.

    If no value is specified, the HTML <span> is used.

  8. Run and debug the template: