The names of merge tags remain the same in Template Builder and the Campaign Editor in ZetaHub. However, in the Template builder, the merge tags use double bracket notation (as against double curly-brace notation in the Campaign Editor). Example: [[first_name]] OR [[rec.article.0.title]]
When the HTML from a template created in Template Builder is pushed to a Campaign, the double bracket notation is converted to double curly brace automatically.
Special Treatment of Recommendation Merge Tags in Template Builder
The following merge tags will automatically be wrapped with links back to your site. This means that you do not have to explicitly create hyperlinks using [[rec.x.x.url]]:
[[rec.x.x.title]] | Using this merge tag will display the title text and also wrap the text with a link back to the original page of the resource |
---|---|
[[rec.x.x.thumbnail]] | Using this merge tag in a text box will display the actual thumbnail image and wrap the image with a link back to the original page of the resource |
[[rec.x.x.description]] | Using this merge tag will display the description text and also wrap the text with a link back to the original page of the resource |
Preventing Link Wrapping
Special property names are used in Template Builder merge tags to prevent link wrapping.
[[rec.x.x.title_raw]] | Using this merge tag will display the title text without link wrapping. |
---|---|
[[rec.x.x.thumbnail_url]] | Using this merge tag will render the actual URL of the thumbnail image associated with the resource. |
[[rec.x.x.description_raw]] | Using this merge tag will display the description text without link wrapping. |