Jamroom Logo
Newsletter
Member Spotlight
427826
The Talent Farm
"TheTalentFarm is South Florida's newest and coolest recording studio/venue! We encourage artists of all genres to showcase their skills at any of our live shows, most of which are broadcast over the Internet. The selection process is sometimes painstaking. But thanks to Jamroom, all candidates can submit their bios, songs, EPK's even videos without effort, making it really easy for the staff to evaluate an artist and place them on the correct type of show. As the site grows and takes on its own personality, I remain confident that Jamroom will be able to keep up. The program is excellent, and the support is even better. Jamroom does everything I need, and does it well!"
Follow Jamroom on Twitter!

{jr_favorite} Index {jr_fetch}

{jr_feed_reader}


The {jr_feed_reader} template function is used for embedding external RSS Feeds directly into a Jamroom Template.

Parameters:

Name Type Required Default Description
feed string yes n/a The "feed" parameter is the URL to the RSS Feed you want to pull in.
template string yes n/a The "template" parameter defines the Jamroom skin template that wil be used to format the feed data.
show integer no n/a If the "show" parameter is given, then only the number given will be "shown".  For example, if the "default" number of articles in a feed is 10, you can enter a value of  show="2" to limit the displayed feed articles to only the first 2 in the feed.
cache_seconds integer no 300 By default Jamroom will "cache" a feed for 300 seconds (5 minutes).  You can change this cache length by passing in the "cache_seconds" parameter.
assign string no no The "assign" parameter is an optional parameter that allows you to take the processed Feed output and store it in a template variable for further processing.  This is handy to check to ensure the results of the fetch contain valid data.

 

Example:

Example embedding the {jr_feed_reader} template function into a template:

{jr_feed_reader feed="http://slashdot.org/index.rss" template="slashdot_feed.tpl" cache_seconds="30"}

The contents of the "slashdot_feed.tpl" template file:

{foreach from=$ITEMS item="_item"}
  <h2><a href="{$_item.LINK}" target="_blank">{$_item.TITLE}</a></h2><br />
  {$_item.DESCRIPTION}<br /><br />
{/foreach}


Note: The {jr_feed_reader} function first became available in Jamroom 4.0.29

{jr_favorite} page 114 of 171 {jr_fetch}
Solutions Products Support Community Company
Social Media Platform
Social Networking Software
Musician Website Manager
Community Builder
Jamroom Core
Jamroom Addons
Jamroom Modules
Jamroom Marketplace
Support Forum
Documentation
Support Center
Contact Support
Community Forum
Member Sites
Developers
About Us
Contact Us
Privacy Policy
©2003 - 2012 Talldude Networks, LLC.