7921 Posts in 1359 Topics by 933 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » EventCalendar: UpcomingEvents/RecentEvents and ShowInMenus=0 (not showing)
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 540 Views |
-
EventCalendar: UpcomingEvents/RecentEvents and ShowInMenus=0 (not showing)

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.
-
Re: EventCalendar: UpcomingEvents/RecentEvents and ShowInMenus=0 (not showing)

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
| 540 Views | ||
|
Page:
1
|
Go to Top |
