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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

EventCalendar: UpcomingEvents/RecentEvents and ShowInMenus=0 (not showing)

Go to End

2 Posts   975 Views


Community Member, 65 Posts

9 January 2011 at 10:46am

I'm using the latest release of EventCalendar (Rev 127) and SilverStripe 2.4. I've created some CalendarEvents and they are showing up as UpcomingEvents and RecentEvents as they should. Because these events are children of my main-calendar, they are shown up in the mainmenu (children are showed on hover). As I don't want every event to be shown there, I unchecked "ShowInMenus" for all events (I'd also like to do this by default with static $defaults when it's working correctly).
If I do so, the events are also hidden on my "RecentEvents" and "UpcomingEvents"-Page (UpcomingEvents on Main-Calendar doesn't show them either). I searched the code for some checking of "ShowInMenus" but there's nothing, can "DataObject::get()" be the problem?

Thanks for your help.


Forum Moderator, 4102 Posts

10 January 2011 at 12:00pm

Thanks for that. I've updated the Calendar page to use AllChildren() instead of Children().

Silverstripe tips, tutorials, screencasts, and more.