NewsFeed for MODx v3
Created by Raymond Irving, August 2005
Code made RSS valid and enhanced by Mark Kaplan, September-October 2005
Tag-closing feature by Greg Matthews
Enable RSS2 news feed from your website
Snippet Parameters [default]:
&defaultauthor - Default username to use when missing or not available.
Defaults to the initial admin user account. [string]
Example: &defaultauthor=`Admin <[email protected]>`
&makerss - set to 0 to generate a link to the feed. Defaults to 1
(available when &makerss=1)
&newsfolder - Folder id where news items are to be stored. Example &newsfolder=`2`. If &newsfolder is missing the current document id will be used.
&topitems - set the top number of items to be listed in news feed. [20]
©right - set copyright information
&ttl - set how often should feed readers check for new material (in seconds) -- mostly ignored by readers.
&trunc - truncate to summary posts? if set to false, shows entire post [true]
&truncSplit - use the special "splitter" format to truncate for summary posts [true]
&truncAt - the split-point splitter itself [<!-- splitter -->]
&truncLen - if you don’t have a splitter or you turn that off explicitly, the number
of characters of the blog to show for summary if not using splitter [450]
However, if you have a summary of the post, it will use that instead.
&pubOnly - display published documents [true]
(available when &makerss=0)
&showlink - set to 1 to show feed link. Defaults to 1
&linkid - set the document id for the rss new feed. (available when &makerss=0)
&commentschunk - if you’re using comments, the name of the chunk used to format them
Version 2 Beta 2 has been released!
UNPUBLISHED DOCUMENTS ARE NOW
NOT SHOWN IN THE RSS FEED!

* &makerss - set to 0 to generate a link to the feed. Defaults to 1 // set subscribe mode $makerss = isset($makerss) ? $makerss:1;