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.

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   1111 Views

Avatar
oleze

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.

Avatar
UncleCheese

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. http://www.leftandmain.com