7939 Posts in 1472 Topics by 944 members
|Go to End|
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.
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. http://www.leftandmain.com
|Go to Top|