Jump to:

10848 Posts in 2516 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » Preview: Event Calendar Module

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
Go to End
Author Topic: 39300 Views
  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: Event Calendar Module Link to this post

    I'm not seeing the lack of sorting on the default view. Can you replicate it on the demo site?

    As for the linking issue, you need to make sure you use the $Link method of the CalendarDateTime object (returned by the <% control Events %>), and not the Event object. My guess is that link is using $Event.Link instead of $Link.

  • dreamstudio
    Avatar
    Community Member
    48 Posts

    Re: Preview: Event Calendar Module Link to this post

    If you look to your http://eventcalendar.bluehousegroup.com/ and see the basic calendar... its set to show lots of events and look at the dates... starts on apr07 goes down to OCt then jumps back to apr06 when it hits another recurring event. From what I can see it tries to put things in date order for items that dont recurr but once it then gets to a recurring item it does all the days till oct then starts on the next one.

    if you do a filter for x months then it works ok, so it seems the home page kind of sorts dates but repeating events throws it out

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: Event Calendar Module Link to this post

    Seems to have been a bug with DataObjectSet::getRange(). I'm using good ol' array_slice() now and it seems to be working.

  • dreamstudio
    Avatar
    Community Member
    48 Posts

    Re: Preview: Event Calendar Module Link to this post

    so is it another version we need to download or is it a simple fix we can do ourselves?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: Event Calendar Module Link to this post

    Just do an svn update.

  • dreamstudio
    Avatar
    Community Member
    48 Posts

    Re: Preview: Event Calendar Module Link to this post

    excellent they all work now, the only thing that now seems to stop the calendar working is if i drop in $MonthNavigator
    under the calendar widget it just wont show the calendar or any calendar event page, just get a white page

    Also with the calendar drop down, is it possible it could show the year as well, as it currently shows the months but also previous months so people might click on the wrong month ie last years events

  • dreamstudio
    Avatar
    Community Member
    48 Posts

    Re: Preview: Event Calendar Module Link to this post

    im trying to change the dtstart field that shows up on the calendar default view to go from apr 04 2009 to Saturday April 4th 2009

    I know before you mentioned about date fields but where in the code would i change that field or how would i go about doing this?

  • dreamstudio
    Avatar
    Community Member
    48 Posts

    Re: Preview: Event Calendar Module Link to this post

    We want to have the events split into groups, so for instance some events are Fundraising events. We then want to say be able to show ALL fundraising events only. so that could then show 8 items on the page. I noticed on your docs you said about creating new fields, would there be a way to make a fundraising field and then be able to link to that and show just events that are tagged with that field?

    39300 Views
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
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.