Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules

Discuss all other Modules here.

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

Event Calendar: not all DatesTimes are shown, limited at 6


Reply

6 Posts   613 Views

Avatar
borriej

19 March 2013 at 2:05am Community Member, 267 Posts

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

Avatar
borriej

22 March 2013 at 2:48am Community Member, 267 Posts

up!

Avatar
borriej

24 March 2013 at 11:51pm Community Member, 267 Posts

Please, some one?

Avatar
borriej

28 March 2013 at 3:42am Community Member, 267 Posts

up

Avatar
borriej

3 April 2013 at 5:56am Community Member, 267 Posts

still looking for the answer, please someone..

Avatar
UncleCheese

5 April 2013 at 3:28pm 4085 Posts

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

Check Calendar::$defaultFutureMonths.