WSN Gallery
Featuresspacer Showcasespacer Reviewsspacer Demosspacer Purchasespacer Manualspacer Support
Associating an RSS Feed With a Image
Associating an RSS Feed With a Image
By Paul

This article is for attaching feeds to images, and should not be confused with submitting RSS feeds seperately.

In your images 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 image. Please note this associates with a particular image, unlike the XML submission option which adds images from a feed into a specified category.

By default the data will be displayed in the image 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/wsngallery/manual/{FEEDLINK}">{FEEDTITLE}</a> by {FEEDAUTHOR} on {FEEDPUBDATE}:
<br>{FEEDDESCRIPTION}
<br>
<!-- END FEEDS -->


This is essentially what's in your image 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 -> Images. 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 {IMAGETOTALINFEED} in a conditional like <IF not {IMAGETOTALINFEED}>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: 670 views. Averaging 1 per day.
In the most recent 30 day period, there've been 10 views.

Previous Article | Next Article

Home    |    Features    |    Showcase    |    Reviews    |    Demos    |    Purchase    |    Manual    |    Support