Siebel Marketing User Guide > Creating and Using Offers > Working with Email Offers >

Named Blocks Personalization Element


The following list contains the Named Blocks personalization element components:

  • $(InsertBlock "MatchString"). Insert Block component. A block of text or HTML will be 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.
  • $(DefineBlock "MatchString"). Define Block component. Starts a block of text or HTML that will be 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.

NOTE:  The string comparison is case sensitive.

Example of Using the Named Blocks Personalization Element

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

<P>The temperature of your favorite color is $(InsertBlock "[Field: Favorite Color]").</P>

$(DefineBlock "Red")

<B>hot</B>

$(EndBlock)

$(DefineBlock "White")

<B>cold</B>

$(EndBlock)

$(DefineBlock "Blue")

<B>cool</B>

$(EndBlock)

In this example, the merge field named Favorite Color is the value Red. After population, the following sentence appears:

The temperature of your favorite color is hot.

The HTML source will read:

<P>The temperature of your favorite color 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.

Siebel Marketing User Guide