Jump to:

10929 Posts in 2613 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » Event Calendar: not all DatesTimes are shown, limited at 6

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 568 Views
  • borriej
    Avatar
    Community Member
    267 Posts

    Event Calendar: not all DatesTimes are shown, limited at 6 Link to this post

    Hi,

    Got the latest build Event Calendar for 2.4.7 from github few weeks ago.

    Problem:
    not all 'datetimes' events are shown

    My event has got these DateTimes.. no pattern, just added dates.

    Start Date,"End Date","Start Time","End Time","All day"
    12-12-2013,"12-12-2013","16:00","<em>none</em>","No"
    28-11-2013,"28-11-2013","16:00","<em>none</em>","No"
    14-11-2013,"14-11-2013","16:00","<em>none</em>","No"
    07-11-2013,"07-11-2013","16:00","<em>none</em>","No"
    31-10-2013,"31-10-2013","16:00","<em>none</em>","No"
    24-10-2013,"24-10-2013","16:00","<em>none</em>","No"
    13-06-2013,"13-06-2013","16:00","<em>none</em>","No"
    30-05-2013,"30-05-2013","16:00","<em>none</em>","No"
    23-05-2013,"23-05-2013","16:00","<em>none</em>","No"
    25-04-2013,"25-04-2013","16:00","<em>none</em>","No"
    04-04-2013,"04-04-2013","16:00","<em>none</em>","No"
    11-04-2013,"11-04-2013","16:00","<em>none</em>","No"

    Code:

       public function agendaItems() {
          $today = date("Y-m-d");
          return DataObject::get_one("Calendar")->Events(null, $today, null, false, 99, null);
       }

    Template:

    <% if agendaItems %>
             <div id="events">
             <ul>
             <% control agendaItems %>
                <li class="clearfix $EvenOdd">
                   <div class="eventdetails">
                      <% if Announcement %><% else %><a href="$Link" class="clearfix"><% end_if %>
                         <span class="date">$_Dates</span>
                         <span class="eventTitle">$EventTitle</span>
                         
                      <% if Announcement %><% else %></a><% end_if %>
                   </div>
                   <div class="eventdownload"><a class="btn add" href="$ICSLink"><% _t('ADD','Add to Calendar') %></a></div>
                </li>
             <% end_control %>
             </ul>
             <a href="$RSSLink" class="feed"><% _t('SUBSCRIBE','Subscribe to the Calendar') %></a></span>
             </div>
             <% else %>
             <% _t('NOEVENTS','There are no events') %>.
             <% end_if %>

    The result:
    I see the upcoming events, but not alle DateTimes are shown, only the first 6

    Question:
    How do i show all DateTimes for all events?

    Note:
    "Number of events to display on default view" = 50
    "Number of future dates to show for repeating events" = 50

  • borriej
    Avatar
    Community Member
    267 Posts
  • borriej
    Avatar
    Community Member
    267 Posts

    Re: Event Calendar: not all DatesTimes are shown, limited at 6 Link to this post

    Please, some one?

  • borriej
    Avatar
    Community Member
    267 Posts
  • borriej
    Avatar
    Community Member
    267 Posts

    Re: Event Calendar: not all DatesTimes are shown, limited at 6 Link to this post

    still looking for the answer, please someone..

  • UncleCheese
    Avatar
    4085 Posts

    Re: Event Calendar: not all DatesTimes are shown, limited at 6 Link to this post

    Most of those dates are too far in the future to show up by default.

    Check Calendar::$defaultFutureMonths.

    568 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.