Jump to:

7937 Posts in 1537 Topics by 944 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, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 650 Views
  • oleze
    Avatar
    Community Member
    65 Posts

    EventCalendar: UpcomingEvents/RecentEvents and ShowInMenus=0 (not showing) Link to this post

    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.

  • UncleCheese
    Avatar
    4085 Posts

    Re: EventCalendar: UpcomingEvents/RecentEvents and ShowInMenus=0 (not showing) Link to this post

    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

    650 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.