Sf rssfeed

From ARK
Revision as of 10:08, 14 July 2011 by Stuarteve (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

The sf_rssfeed pulls the results from an RSS feed from any URL. It is usually used on the User Home page to show live results from an ARK RSS feed, but can also be used to display the latest XKCD comics or whatever you would like your users to see.

Prerequisites

none

Additional Fields

sf_rssfeed takes the following extra fields:

  • 'feed_url' - REQUIRED - this is an array of URLs of RSS feeds that you wish to display.
  • 'op_sf_cssclass' - OPTIONAL - if you wish to use a different css class to display the results

Example Configuration

An example of sf_rssfeed returning an ARK feed and the latest XKCD comics

$userhome_rssfeed =
    array(
        'view_state' => 'max',
        'edit_state' => 'view',
        'sf_nav_type' => 'name',
        'sf_title' => 'rssfeeds', 
        'sf_html_id' => 'uhlp_rssfeed', // Must be unique
        'script' => 'php/data_view/subforms/sf_rssfeed.php',
		'feed_url' => array(
				'http://my_ark_server/ark/feed.php?feed_id=21',
				'http://www.xkcd.com/rss.xml',
		),
        'op_sf_cssclass' => 'ftr_subform',
);