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.

mini-calendar questions: Using it for a sports schedule. Have entry problems.

July 17, 2009 5:43pm

Subscribe [2]
  • #1 / Jul 17, 2009 5:43pm

    SSM

    33 posts

    I would like to modify the mini-calendar so that it contains the schedule of my favorite hockey team. I have successfully put it into a page, styled it, created a new weblog and put an entry in it. However, here is the problem.

    How do I get future entries to show up since obviously a schedule contains dates in the future?

    Right now it will not show anything except entries today and in the past, no matter what I set for the entry date.

    Is what I’m trying to do theoretically possible?

  • #2 / Jul 18, 2009 1:56am

    SSM

    33 posts

    I edited my original post to reflect where I’m stuck right now…

  • #3 / Jul 18, 2009 2:40am

    SSM

    33 posts

    ok, I found the:

    show_future_entries=“yes”

    option.  Now, the date of my future entry disappears.  18, 19, 21, 22… Nothing gets printed for 20.  This seems to be related to using custom fields.  If I put in {title} - it works.  If I put in {logo} it does not work (although it worked for past events). This is crazy…

    my code:

    {exp:weblog:calendar switch="calendarToday|calendarCell" weblog="calendar" show_future_entries="yes"}
    <div id="calendar_header"></div>
    <table class="calendarBG" border="0" cellpadding="0" 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_short}</td>
    {/calendar_heading}
    </tr>
    
    {calendar_rows }
    {row_start}<tr>{/row_start}
    
    {if entries}
    {exp:weblog:entries weblog="calendar"}
    <td class='calendarEvent' align='center'>
    {entries}
    <div>{logo}</div>
    {/entries}
    </td>
    {/exp:weblog: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}
  • #4 / Jul 19, 2009 6:08pm

    Steven Grant

    894 posts

    If I remember correctly, it doesn’t like custom fields much

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

ExpressionEngine News!

#eecms, #events, #releases