Documentation Center

Configuring REL

If you intend to publish to REL, configure your Component Templates, Publication Targets, and the Experience Optimization Tag bundle in the cd_dynamic_conf.xml file.

About this task

When set to REL, TCDL code on your published Web page, is transformed and executed by a Java class at request time. To make Content Delivery transform TCDL tags at request time:

Procedure

  1. In your Component Templates:
    1. Set the Output format property to REL (Render Engine Language).
    2. Set the Component Presentations based on this Component Template will be to the value Published as a Dynamic Component.
  2. If you are using the new publishing framework introduced in SDL Web, access the configuration location of your Content Deployer microservice.
  3. Open cd_deployer_conf.xml for editing.
  4. In the TCDLEngine section, under Properties, ensure that only the following Property subelement is uncommented:
    <Property Name="tcdl.target.language" Value="rel" />
  5. Save and close cd_deployer_conf.xml.
  6. Alternatively, if you are using the old publishing framework that was deprecated in SDL Web, then in your Publication Targets, set the Target Language property to REL.
  7. Optional: Open smarttarget_conf.xml in a text editor and configure TCDL settings for Experience Optimization in the <Tcdl> section of the configuration file.
    For example, the <Pattern> section defines the regular expression that you can use in your code to indicate where a replacement string is inserted. By default, double-hash (##()##) signs are used to demarcate the string to be replaced (these indicate content that requires processing by Experience Optimization).
  8. Navigate to the configuration location of your Content Service or Session-enabled Content Service.
  9. Open cd_dynamic_conf.xml for editing.
  10. In the <TCDLEngine> element, add the following element:
    <TCDLEngine>
       <TagBundle Resource="smarttarget_renderers_bundle.xml"/>
    </TCDLEngine>
  11. Save and close cd_dynamic_conf.xml.

What to do next

To access REL objects, use the following notation to evaluate an expression in your Dreamweaver Template:
 #{expression}
For example:
<tcdl:navigationSectionHeader>
    #{section.customFieldValues['MyNavigationLabel']}
</tcdl:navigationSectionHeader>