Yes, this wont work with SS3.
Please check the below link 'DataObjectDecorator' are replaced with DataExtension
http://doc.silverstripe.org/en/developer_guides/extending/extensions
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.
- Previous 10 entries
- 1
- 2
- 3
- Page 44(current)
Got it, thanks.
I've also got the first 5 items displaying on the homepage (with some help from this thread: http://www.silverstripe.org/community/forums/all-other-modules/show/21366 ). The fields from the module show on the homepage OK, but the fields from the decorator aren't being pulled across.
Here's my code in Page.php:
public function MyUpcomingEvents($numEvents=5) {
return DataObject::get_one("Calendar")->UpcomingEvents($numEvents);
}
How would I modify this to also pull in the fields from my CalendarEventDecorator, please?
Many thanks again :)
- Previous 10 entries
- 1
- 2
- 3
- Page 44(current)