ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Expression Engine calendar: some entries not showing

February 28, 2010 3:56pm

Subscribe [3]
  • #1 / Feb 28, 2010 3:56pm

    Cog Design

    10 posts

    Hi there,

    I wonder if anybody can help. I have created a calendar that displays entries from a very simple events weblog. It seems to be (mostly) working as it should. However, for some reason events from the 1st-9th March 2010 + 1st-4th Feburary 2010 don’t seem to be displayed in the calendar.

    Events have unique url titles, but on some events the titles are duplicated.

    This same thing isn’t happening with events from any other month (as originally I thought it could be to do with events not displaying before the 10th).

    I did a test weblog:entries loop to see all the events for March, and events on the 1st, up to the 9th were outputted. Also, these events didn’t seem to have any anomolies (eg: closed status / incorrect date formatting etc…)

    Not sure why this is happening. My code is as follows:

    {exp:weblog:calendar switch="calendarToday|calendarCell" weblog="event" status="open" show_future_entries="yes" start_day="sunday" leading_zeroes="yes"}
            <table class="calendarBG" border="0" cellpadding="6" cellspacing="1" summary="My Calendar">
                <tr class="calendarHeader">
                <th><div class="calendarMonthLinks"><a href="http://{previous_path=weblog/index}"><<</a></div></th>
                <th colspan="5">{date format="%F %Y"}</th>
                <th><div class="calendarMonthLinks"><a href="http://{next_path=weblog/index}class=calendarMonthLinks">>></a></div></th>
                </tr>
                <tr>
                {calendar_heading}
                <td class="calendarDayHeading">{lang:weekday_abrev}</td>
                {/calendar_heading}
                </tr>
                {calendar_rows}
                    {row_start}<tr>{/row_start}
                    {if entries}
                    {entries}
                    <td class='{switch}' align='center'>{day_number}
    {title}
    {url_title}
    {entry_date format="%D, %F %d, %Y - %g:%i:%s"}</td>
                    {/entries}
                    {/if}
                    {if not_entries}
                    <td class='{switch}' align='center'>{day_number}</td>
                    {/if}
                    {if blank}
                    <td class='calendarBlank'>{day_number}</td>
                    {/if}
                    {row_end}</tr>{/row_end}
                {/calendar_rows}
            </table>
        {/exp:weblog:calendar}

    Any ideas? Help / suggestions would be greatly appreciated.

    Thanks,

    Jack
    Web designer - Cog Design.

  • #2 / Mar 01, 2010 1:30am

    John Henry Donovan

    12339 posts

    Jack,

    Are you definite the entries don’t have a status other than open? Are they set to sticky?

  • #3 / Mar 01, 2010 5:47am

    Cog Design

    10 posts

    Hi John,

    Thanks for such a quick, succinct reply. Following your suggestion I tried disabling sticky (and many other options) and eventually got to the root of the issue.

    The default limt of the weblog:calendar loop (as with all loops) was 100. The number of entries for March + Feb happened to exceed 100. As they were being pulled in by decsending order (starting at the end of the month on), they stopped being pulled in at 100 entries (which in March’s case was the 10th). Once I set the “limit” param to “1000” the full loop was pulled in.

    Again, thanks for your help.

    Thanks,

    Jack

  • #4 / Mar 01, 2010 9:00am

    Sue Crocker

    26054 posts

    Glad John was able to help. Don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases