Associating an RSS Feed With a Article
By Paul
2/5 based on 1 vote. The median rating is 2.
By Paul
This article is for attaching feeds to articles, and should not be confused with submitting RSS feeds seperately.
In your articles switches you have an "RSS Submissions" option. When you turn this on people will have the option to supply an RSS feed url with their submission. If they do, data from that feed will become available for the article. Please note this associates with a particular article, unlike the XML submission option which adds articles from a feed into a specified category.
By default the data will be displayed in the article details template, but you can put it anywhere. Use <!-- BEGIN FEEDS --> and <!-- END FEEDS --> to denote where the feed entry begins and ends, anywhere within the scope of a link. Then use {FEED + capitalized name of RSS field + } to display field data. For example:
This is essentially what's in your article details template already.
To control the number of feed items shown, insert the desired number between BEGIN and FEED: <!-- BEGIN 5 FEEDS -->.
The feeds are cached for 12 hours by default, you can change the cache timeout at Admin -> Settings -> Articles. In the event of a bottleneck each page load will only update 3 caches, the rest will be left for the next page in order to not drag out page load time too long.
To detect if the feed is empty, use {ARTICLETOTALINFEED} in a conditional like <IF not {ARTICLETOTALINFEED}>No items in this feed.</IF>
In your articles switches you have an "RSS Submissions" option. When you turn this on people will have the option to supply an RSS feed url with their submission. If they do, data from that feed will become available for the article. Please note this associates with a particular article, unlike the XML submission option which adds articles from a feed into a specified category.
By default the data will be displayed in the article details template, but you can put it anywhere. Use <!-- BEGIN FEEDS --> and <!-- END FEEDS --> to denote where the feed entry begins and ends, anywhere within the scope of a link. Then use {FEED + capitalized name of RSS field + } to display field data. For example:
<!-- BEGIN FEEDS -->
<a href="http://scripts.webmastersite.net/wsnkb/manual/{FEEDLINK}">{FEEDTITLE}</a> by {FEEDAUTHOR} on {FEEDPUBDATE}:
<br>{FEEDDESCRIPTION}
<br>
<!-- END FEEDS -->
This is essentially what's in your article details template already.
To control the number of feed items shown, insert the desired number between BEGIN and FEED: <!-- BEGIN 5 FEEDS -->.
The feeds are cached for 12 hours by default, you can change the cache timeout at Admin -> Settings -> Articles. In the event of a bottleneck each page load will only update 3 caches, the rest will be left for the next page in order to not drag out page load time too long.
To detect if the feed is empty, use {ARTICLETOTALINFEED} in a conditional like <IF not {ARTICLETOTALINFEED}>No items in this feed.</IF>
Rating:
2/5 based on 1 vote. The median rating is 2.
Submitted: 11/23/06 (Edited 08/22/07)
Description: Displaying data from a feed related to a site.
Views:
646 views. Averaging 1 per day.
In the most recent 30 day period, there've been 15 views.

Print
E-Mail