Follow

Specific RSS Feed Entry

You can include one or more specific RSS Feed Entries by specifying the entry number.

To include specific RSS Feed entry

  1. Go to CONTENT > VIEW TEMPLATES to view the list of templates. 
  2. Click a Template to open it in the Edit Template page. 
  3. Click the format tab in which you wish to include the feed: Plain Text, HTML, Mobile.
  4. In the Template area, add the RSS Feed URL Definition Tag:

%%rssfeed url=[URL] name=[NAME]%% where [URL] is the URL to access the RSS feed, [NAME] is the identifier within your content.

  1. Add the RSS Feed Entry Tag:

%%rssobject [NAME].[ATTRIBUTE] [ENTRY_POSITION]%%

where [NAME] is the identifier within your content, [ATTRIBUTE] is which part of the feed to display, and [ENTRY_POSITION]is the number of the entry to include. The default is to include the most recent entry, which is position 1.

  1. If the RSS Feed tag is in the Plain Text, then add ".striphtml" next to the [ATTRIBUTE].
  2. Click UPDATE to save any changes.

The following exampls show code to display the three most recent entries.

Plain Text Example

%%rssfeed url=http:// mydomain.com/rss/feed name=myfeed%%

%%rssobject myfeed.title.striphtml 1%%

%%rssobject myfeed.link 1%%

%%rssobject myfeed.pubdate 1%%

%%rssobject myfeed.description.striphtml 1%%

 

%%rssobject myfeed.title.striphtml 2%%

%%rssobject myfeed.link 2%%

%%rssobject myfeed.pubdate 2%%

%%rssobject myfeed.description.striphtml 2%%

 

%%rssobject myfeed.title.striphtml 3%%

%%rssobject myfeed.link 3%%

%%rssobject myfeed.pubdate 3%%

%%rssobject myfeed.description.striphtml 3%%

 

HTML Article Example

%%rssfeed url=http:// mydomain.com/rss/feed name=myfeed%%

<p><a href="%%$rssobject myfeed.link 1%%"><b>%%$rssobject myfeed.title 1%%</b></a><br />

%%$rssobject myfeed.pubdate 1%%<br />

%%$rssobject myfeed.description 1%%<br />

%%$rssobject myfeed.content 1%%</p>

<img src="%%$rssobject myfeed.mediaimage 1%%" width="250px" /></p>*

<p><a href="%%$rssobject myfeed.link 2%%"><b>%%$rssobject myfeed.title 2%%</b></a><br />

%%$rssobject myfeed.pubdate 2%%<br />

%%$rssobject myfeed.description 2%%<br />

%%$rssobject myfeed.content 2%%</p>

<img src="%%$rssobject myfeed.mediaimage 2%%" width="250px" /></p>*

<p><a href="%%$rssobject myfeed.link 3%%"><b>%%$rssobject myfeed.title 3%%</b></a><br />

%%$rssobject myfeed.pubdate 3%%<br />

%%$rssobject myfeed.description 3%%<br />

%%$rssobject myfeed.content 3%%</p>

<img src="%%$rssobject myfeed.mediaimage 3%%" width="250px" /></p>*

 

*Image support added in v11.9.0

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk