Siebel Marketing User Guide > Creating and Using Offers > About Creating Conditional Content >

Named Blocks Personalization Element


Table 26 shows a list of Named Blocks personalization element components.

Table 26. Named Blocks Personalization Element Components
Personalization Element
Description

$(DefineBlock "MatchString")

Define Block component. Starts a block of text or HTML that is inserted in place of an Insert Block component when MatchString is identical to the MatchString of the Insert Block component.

$(EndBlock)

End Block component. Ends a block of text or HTML started with the Define Block component.

$(InsertBlock "MatchString")

Insert Block component. A block of text or HTML is inserted at the location this component is placed when MatchString is identical to the MatchString of a Define Block component. This comparison is case sensitive.

NOTE:  The string comparison is case sensitive.

The following is a simple example of the use of a Named Blocks personalization element:

<P>The temperature of your favorite drink is $(InsertBlock "[Field: Favorite Drink]").</P>
$(DefineBlock "Coffee")
<B>hot</B>
$(EndBlock)

$(DefineBlock "Iced Tea")
<B>cold</B>
$(EndBlock)

$(DefineBlock "Water")
<B>cool</B>
$(EndBlock)

In this example, the merge field named Favorite Drink is the value Coffee. After the merge fields are populated, the following sentence appears:

The temperature of your favorite drink is hot.

The HTML source reads:

<P>The temperature of your favorite drink is <B>hot</B>.</P>

If there is no match for an Insert Block component match string, then the Insert Block component is not replaced by any text or HTML. After the Email Marketing Server resolves all matches, the remaining Named Block personalization element components are removed (including their trailing line breaks and any text or HTML between Define Blocks and End Blocks).

NOTE:  The Define Block and End Block components may be placed within the HTML HEADER tags. This placement can make the email offer more readable.

To insert named blocks

  1. Navigate to the Offers screen.
  2. In the Offers List, click an email offer.
  3. Select a template to edit.
  4. If the If-Then-Else toolbar is not displayed, right-click in the toolbar area and select it.
  5. In the primary menu, choose Insert Block.
  6. In the secondary menu, choose a merge field.
  7. In the secondary menu, choose a merge field to be personalized.
  8. Select a location in the template to insert the block.
  9. Click Insert Rule.

This inserts the block to be personalized. You need to define the values that have personalized content.

To set values for personalized content

  1. In the primary menu, choose Create Block.
  2. Enter the value of the personalized element to be linked to this block.
  3. Click in the workspace after previously inserted Insert Block statement.
  4. Click Insert Rule.
  5. Place conditional content between $(DefineBlock "merge field") and $(EndBlock) statements.
Siebel Marketing User Guide Copyright © 2006, Oracle. All rights reserved.