10382 Posts in 2196 Topics by 1711 members
| Go to End | ||
| Author | Topic: | 1196 Views |
-
Re: Calendar

18 October 2009 at 10:49am
Try some of the fixes in this post and let me know how you make out.
http://www.silverstripe.org/dataobjectmanager-module-forum/show/268609#post268609
I can't replicate the issue on any of my installs.
-
Re: Calendar

4 December 2009 at 7:52am
Hi Uncle Cheese..
The calendar is working now.
Did an update on all the modules.One question - The events do not show up on the calendars page by default.
Is this default behavior?I don't want to check the 'Show in Menus' on the config since I only like
to see the events on the Calendar page, not on the main menu on the whole site..Maybe I missed something?
Thanks.
-
Re: Calendar

4 December 2009 at 8:21am
By default the calendar should show you the next X number of upcoming events, as defined in the configuration tab in "number of default events to display."
I'm not sure what you mean about the menu. I usually don't build my menu to show the children of a Calendar.
-
Re: Calendar

4 December 2009 at 8:41am Last edited: 4 December 2009 8:46am
Hi..
Please see attached the screenshot.
If checked, it shows the event.I mean the site menu or site navigation.
Thanks. -
Re: Calendar

4 December 2009 at 8:47am
It sounds like you need to build your menu differently. It's not good practice to just show the children of every top level page because that list may get very long, as you've seen in the calendar. I usually only show children for certain page types that I know will have a small number of children.
You can even put a flag on your Page class for "show children".. but it just depends on the project.
-
Re: Calendar

4 December 2009 at 8:47am
It sounds like you need to build your menu differently. It's not good practice to just show the children of every top level page because that list may get very long, as you've seen in the calendar. I usually only show children for certain page types that I know will have a small number of children.
You can even put a flag on your Page class for "show children".. but it just depends on the project.
-
Re: Calendar

4 December 2009 at 8:57am
Thanks for the info.
So it means the calendar module works fine.
I just need to modify the menu code.Thanks for the quick help!
-
Re: Calendar

4 December 2009 at 9:18am
Yeah, it's just a little assuming to leave that unchecked by default. Everyone's project is different, and I don't know if I would want to burden users with having to check something that's normally checked for them. If you do want to change that setting, however, you can set 'ShowInMenus' => 0 using the Object::addStaticVars() method to add a $defaults array to the CalendarEvent class.
| 1196 Views | ||
| Go to Top |

