Jump to:

10986 Posts in 2724 Topics by 1817 members

All other Modules

SilverStripe Forums » All other Modules » Don't display "See also" dates for events calendar

Discuss all other Modules here.

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

Page: 1 2
Go to End
Author Topic: 1043 Views
  • jseth
    Avatar
    Community Member
    98 Posts

    Don't display "See also" dates for events calendar Link to this post

    On our calendar, we have some events, such as School Closed, which have numerous events. When our calendar displays, currently it displays:

    Jul. 05, 2010
    School Closed

    All Day

    Holiday more...
    See also:

    * Sep. 06, 2010
    * Nov. 25, 2010
    * Nov. 26, 2010
    * Dec. 24, 2010
    * Dec. 27, 2010
    * Dec. 28, 2010
    * Dec. 31, 2010
    * Jan. 17, 2011
    * Feb. 21, 2011
    * Apr. 21, 2011

    We'd like to have it display only:

    Jul. 05, 2010
    School Closed

    All Day

    Holiday more...

    These dates are not entered as recurring dates, as our School Closed days are all over the calendar. Is there a setting somewhere that I can change to make the "See Also" dates not display?

    Thank you.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Don't display "See also" dates for events calendar Link to this post

    Are these created as Events or Announcements?

  • jseth
    Avatar
    Community Member
    98 Posts

    Re: Don't display "See also" dates for events calendar Link to this post

    Hi UncleCheese! They are created as Events.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Don't display "See also" dates for events calendar Link to this post

    So you have an event created in your SiteTree called "School closed", and on the Dates and Times tab, there's only one date?

  • jseth
    Avatar
    Community Member
    98 Posts

    Re: Don't display "See also" dates for events calendar Link to this post

    We have an event called School Closed, that is correct. In the Dates and Times tab, there are numerous dates. We'd like to have the dates that appear under "See also" not appear.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Don't display "See also" dates for events calendar Link to this post

    Hmm.. Probably not the best way to have done that, since the all those dates are not related to a single event. They should be on the Announcements tab.

    Otherwise, you can copy Calendar.ss and CalendarEvent.ss to your theme directory and remove the <% control OtherDates %> block. Don't forget to ?flush=1

  • jseth
    Avatar
    Community Member
    98 Posts

    Re: Don't display "See also" dates for events calendar Link to this post

    Thanks, UncleCheese. I didn't know we were using Event inappropriately. I changed those events to announcements and they just as we wanted them to look. Since they're kind of similar but obviously different, would you explain when to use an event instead of an announcement (or is that too dumb a question?)? Thanks again.

    One more question... when we click the > to go to the next month (in the calendar widget), is is possible to make the announcements change to reflect that month's announcements? They only change when I actually click on the month link in the calendar widget. When I click the >, the month in the calendar widget changes, but the announcements for the previous month are still displayed until I click on the month name link in the calendar widget. Thanks.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Don't display "See also" dates for events calendar Link to this post

    Hi, jseth,

    The difference between an event and an announcement is pretty simple -- an event gets its own page, and an announcement is just a short insertion to the calendar page, ideal for things like "John's Birthday" or "School closed"

    The calendar widget doesn't refresh the page -- that's not what it's designed to do. In my opinion, it would get really annoying if every time you browsed the calendar, you had to wait for a new result set to load. People just want to click through to the month they want.

    An alternative that might interest you is $LiveCalendarWidget, which is event-aware -- highlighting dates that contain events.

    1043 Views
Page: 1 2
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.