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

About the Named Blocks Personalization Element


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

Table 12. 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 can be placed within the HTML HEADER tags. This placement can make the email treatment more readable.

Siebel Marketing User Guide Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices.