Description:
Many people wanting to provide an RSS feed of a folder will be using it to syndicate some kind of news or Blog, and will generally want their feed sorted by reverse date. The standard CMF RSS feed doesn't do this - it sorts by ID, which isn't all that much help. The documentation waves a hand at resolving this, leaving it as an exercise.
Explanation:
The RSS feed template comprises two parts - one which is the RSS content for each item (rssItem), and a wrapper which defines the skeleton of the XML and selects the items to use. This is the one you want.
Add a dtml method to your custom folder with id <code>rssItem</code>, with the above code. This will replace the standard RSS skeleton.
It works by changing the standard dtml-in to
a) Sort by CreationDate (you could alternatively use ModificationDate)
b) reverse the sort to put the most recent items first.
The main lesson to learn from this is to work harder at defining your users' requirements before sitting down to code a tool.
The above has been tested on Plone1.01 and the output is visible at http://easyweb.co.uk/Members/martin/blog/RSS
Comments:
rssItem? by georgeh - 2004-10-14
In my Plone (1.0.3) I'm seeing the file to modify as rssBody in ${portal_url}/
portal_skins/generic/rssBody