|
PmWiki /
WebFeedsvisitors (intermediate) Web feeds are a convenient mechanism to let visitors to be notified of changes to a site. Instead of repeatedly checking RecentChanges every day to see what is new, a visitor can use a news aggregator to quickly see what pages of interest have changed on a site. Web feeds are commonly recognized by terms such as RSS, Atom, and web syndication. They are also the foundation for podcasting. In its simplest form, web feeds in PmWiki are built on WikiTrails. Using a feed action such as http://www.pmwiki.org/wiki/Site/AllRecentChanges?action=rss Authors can also create custom feeds by simply creating a wiki trail of the pages they want included in the feed. Feeds can also be generated from groups, categories?, and backlinks?, and the order and number of items in the feed can be changed using options in the feed url. Thus, one can obtain a feed for the Skins category (sorted with most recent items first) by using http://www.pmwiki.org/wiki/Category/Skins?action=rss&order=-time PmWiki is able to generate feeds in many formats, including RSS 2.0 ( How to read a PmWiki syndicated feeds
Feed optionsAdd any of the following options to the end of a PmWiki web feed url to change its output: ?count=n - limit feed to n items ?order=-time - display most recently changed items first ?trail=page - obtain items from trail on page ?group=group - limit feed to pages in group ?link=page - create feed from pages linked to page ?list=normal - exclude things like RecentChanges, AllRecentChanges?, etc. authors (intermediate) Configure PmWiki for feedsThis section describes how to syndicate portions of a wiki to appear in a web feed. It does not describe how to display a web feed within a wiki page -- for that, see Cookbook:RssFeedDisplay. To enable web feed generation for a site, add one or more of the following to a local customization file: if ($action == 'rss') include_once('scripts/feeds.php'); if ($action == 'atom') include_once('scripts/feeds.php'); if ($action == 'rdf') include_once('scripts/feeds.php'); if ($action == 'dc') include_once('scripts/feeds.php'); or if ($action == 'rss' || $action == 'atom' || $action == 'rdf' || $action == 'dc') include_once('scripts/feeds.php'); See Also
<< Finding orphaned and missing pages | Documentation Index | Url approvals >> |