Merge Tags For RSS Campaigns

RSS Campaigns have additional merge tags allowing campaigns to be customized using the content of the feed.

Variables

Tag

Description

*|RSS:TITLE|*

Title of the feed's most recent item.

*|RSS:LINK|*

Link (URL) of the feed's most recent item.

*|RSS:DESCRIPTION|*

Description of the feed's most recent item.

*|RSS:PUB_DATE|*

Publish date of the feed's most recent item.

*|RSS:IMAGE|*

Contains an HTML <img> tag with src attribute being the most recent item's image URL.

Use with SAFE to avoid HTML escaping, ex. *|SAFE:RSS:IMAGE|*.

*|RSS:IMAGE_URL|*

The URL of the most recent item's image.

RSS Items

Use the *|RSSITEMS:|* merge tag to format and output content for the last 3 items in your RSS feed.

Example:

*|RSSITEMS:|*
    <p>
        <a href="*|RSSITEM:LINK|*">
            *|DATE_FORMAT:'%Y-%m-%d', RSSITEM:PUB_DATE|* -
            *|RSSITEM:TITLE|*
        </a>
        <br>
        *|SAFE:RSSITEM:DESCRIPTION|*
        *|SAFE:RSSITEM:IMAGE|*
    </p>
*|END:RSSITEMS|*

You can control the number of RSS items looped over by RSSITEMS by adding a number after the colon in the tag. The number must be between 1 and 10 (a maximum of 10 rss items can be output).

Example outputting 5 rss items:

*|RSSITEMS:5|*
   (your content here ...)
*|END:RSSITEMS|*

You can use the RSSITEM:INDEX variable to output different content for different items in the feed.

Example:

*|RSSITEMS:|*
    *|IF:RSSITEM:INDEX = 0|*
        First RSS Item
    *|ELSE:|*
        Other RSS Item
    *|END:IF|*
*|END:RSSITEMS|*

Item Variables

The following variables are available within an *|RSSITEMS:|* block:

Tag

Description

*|RSSITEM:INDEX|*

0 based index of the RSS item.

*|RSSITEM:TITLE|*

Title of the current RSS item.

*|RSSITEM:LINK|*

Link (URL) of the current RSS item.

*|RSSITEM:DESCRIPTION|*

Description of the current RSS item.

*|RSSITEM:PUB_DATE|*

Publish date of the current RSS item.

*|RSSITEM:IMAGE|*

Contains an HTML <img> tag with src attribute being the RSS item image URL.

Use with SAFE to avoid HTML escaping, ex. *|SAFE:RSSITEM:IMAGE|*.

*|RSSITEM:IMAGE_URL|*

The URL of the current RSS item's image.