Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

RSS Feed - 10 most recently updated pages


Reply

605 Views

Avatar
Lisa

16 June 2011 at 5:49pm Community Member, 3 Posts

Hello forum

Following the instructions on the RSS Feed Documentation page (http://doc.silverstripe.org/sapphire/en/reference/rssfeed), I added an RSS Feed for the "10 most recently updated pages" on my website.

The only difference is that I added the RSS code to sitefiles/code/Page.php rather than mysite/code/Page.php.

Please see http://www.aawhg.org/site-help/rss as an example.

These are the problems I'm hoping someone can help me fix:

(1) The date for each rss item isn't correct - it shows the date the page was created rather than the date it was last updated. For example, the "Site help" page was last updated yesterday 15 June, but the <pubDate> shows 30 May 2008 - the date it was created.

(2) When I subscribe to it with Google Reader, the date/time for each rss item is the same, and it appears to be the date I subscribed to the feed, rather than the last updated date.

Does anyone have any ideas?

Thanks!
Lisa