Adding Page Regions to Dreamweaver Templates

Add Page Regions to your Web pages by adding <tcdl:region> elements to your Dreamweaver Templates.

Before you begin

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, add <Region> elements to the smarttarget_conf.xml file to define your Page Regions.

About this task

A Dreamweaver template is typically used to define the design of a Web page. Web pages are divided up into different regions which 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 the 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. In the General tab, enter a Name.
  5. In 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 the region is used in (SmartTarget).
  7. Click Save and Close.

Results

You have created a basic Dreamweaver Template for SmartTarget which you can use in a Compound Page Template.

What to do next

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