Throughout most of Online Marketing you can personalize your email and web documents for each recipient or respondent by adding merge content to include their name, email address or any other information from the profiles.
Merge content syntax appears in Online Marketing when you use the Merge button to embed content into a document, email subject line, or other similar location. You can also use it when manually typing in merged content placeholders in Online Marketing or in an exported web document.
This appendix describes the merge content syntax used in Online Marketing
See Also
The basic format for merge content syntax is as follows:
<pstag:contentType [name=contentName] value=value [format=value] [default=value] [id=value] [attribX=valueX] />
where
contentType |
A valid predefined content type, in the following format:
|
name |
The name of the merge content object. For Dynamic Content, Web Link and Extension types, the user usually specifies this name at the time of merge. For other predefined types, the system generates a unique name based on the type name and a number. |
value |
A pointer to the merged content (a text string or a value stored in the database). |
format |
The format used to display the content. |
default |
The default value to display if the data has not been populated. |
id |
A unique system identifier. |
The following restrictions apply to merge content syntax:
Spaces are not allowed between the equal sign and an attribute value.
All tags are case sensitive.
The following table shows examples of the syntax used in merge content objects.
Merge Content Object |
Syntax Example |
Profile field |
|
Document field |
|
Web link (external) |
|
Web link (internal) |
|
Dynamic content |
Note. You cannot type this syntax into a web document; you must use the Merge functionality to enter it. |
Recipient ID |
|
Tracking number |
|
Current date |
Format values include:
|
Current time |
Format values include:
|
Embed JavaScript |
This tag is used only in exported web documents, to replace the JavaScript that is written out as part of the exported contents. This tag is optionally included in the web document during the export process. You have the option of deleting the tag and replacing it with custom JavaScript. |
Extension |
|
See Also
The following examples show the merge content syntax used in Extensions:
<pstag:extension name="Hello World Servlet" id="123456" default="Hello" />
Note. The parameters for extensions are specified in the Merge Content builder. They are not displayed as part of the syntax.
Additional merge syntaxes are available for obtaining various dialog-related information. These syntaxes are typically used in parameters to extensions, but can also be embedded in your documents. The following table shows the syntaxes available:
Type |
Syntax |
Action ID |
|
Base URL |
|
Dialog Business Unit |
|
Dialog ID |
|
Document Language Code |
|
Document SetID |
|
Individual BOID |
|
Individual ID |
|
Individual Role Type ID |
|
Organization BOID |
|
Organization ID |
|
Organization Role Type |
|
Source Action ID |
|