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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

RSS Feed - 10 most recently updated pages


Go to End


1271 Views

Avatar
Lisa

Community Member, 3 Posts

16 June 2011 at 5:49pm

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