Documentation Center

Adding Experience Optimization Page Regions to Dreamweaver templates

A Page Region is an area on a webpage where Promotions are displayed. Add Page Regions to your webpages by adding <tcdl:region> elements to your Dreamweaver templates.

Before you begin

Prerequisites for this task are as follows:

  • To create a Dreamweaver Template, you must have Template Management rights as well as write permissions for the Folder in which you intend to create the Compound Template.
  • Before adding <tcdl:region> elements to Dreamweaver Templates, define the Region triggers using the Powershell cmdlets.

About this task

A Dreamweaver template is typically used to define the design of a webpage. A single webpage can be divided up into different regions to define the arrangement and styling of elements (content) on the page. For example, the <div> tag is frequently used to define page layout to group block-elements and format these with styles.

Procedure

  1. Open Content Manager Explorer.
  2. Open a Publication.
  3. Select the Folder where your templates are stored and choose New > Template Building Block in the context menu.
    The New Template Building Block window appears.
  4. On the General tab, enter a Name.
  5. On the Source tab, select the Template Type Dreamweaver:
  6. Add <tcdl:region> elements to add Page Regions to a page, for example:
    <tcdl:region id="sidebar" type="SmartTarget">
     </tcdl:region>
    Where:
    • id is a String identifying a Page Region. The value must match a value specified in a <Region> elements in the smarttarget_conf.xml file.
    • type specifies the product in which the region is. The type SmartTarget is the product type for Experience Optimization.
  7. Click Save and Close.

Results

You have created a basic Dreamweaver template for Experience Optimization that you can use in a Compound Page Template.

What to do next

In Template Builder, open and run your Compound Page Template that includes this Dreamweaver Template Building Block.