This article is for attaching feeds to links, and should not be confused with
submitting RSS feeds seperately.
In your links 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 link. Please note this associates with a particular link, unlike the XML submission option which adds links from a feed into a specified category.
By default the data will be displayed in the link 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/wsnlinks/wsnmanual410/{FEEDLINK}">{FEEDTITLE}</a> by {FEEDAUTHOR} on {FEEDPUBDATE}:
<br>{FEEDDESCRIPTION}
<br>
<!-- END FEEDS -->
This is essentially what's in your link 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 -> Links. 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 {LINKTOTALINFEED} in a conditional like <IF not {LINKTOTALINFEED}>No items in this feed.</IF>
2/5 based on 1 vote. The median rating is 2.