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.

Customising the CMS /

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

RSS and date


Go to End


1733 Views

Avatar
Jarek

Community Member, 30 Posts

10 February 2009 at 9:45am

Hello

In tutorial to RSS class are passed ale subpages $rss = new RSSFeed($this->Children()..... Is this correct way? What will happen in this situation:
- page starts in January
- new user subscribes RSS in December (or in next few years)

User will get, all RSS data from Januray (page start)? I think there sholud be condition to date, somthing like create_date > now-few_days, to get only newest rss data. I'm thinking correctly?