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.

EE1.x: Showing multiple events in calendar

March 10, 2011 5:56am

Subscribe [2]
  • #1 / Mar 10, 2011 5:56am

    andrew_spl

    71 posts

    Hi,

    I have an event calendar set up to display links to individual events. However, if there is more than one event on a particular day, the calendar displays a date for each event. (See attached image showing a duplicate 7). Is there a way to group events so that the link will go to that all of a days events - so showing one date, rather than an individual event? Or even better, display a list of links on mouse over? (As shown in second image).

    Thanks for any help.

    Andrew

    Moved to EE1 Support by Moderator

  • #2 / Mar 10, 2011 10:30am

    Sue Crocker

    26054 posts

    Hi, Andrew.

    Can you tell us more about the code you’re using to generate the calendar? Also -

    Can you tell us which version/build of EE2.x you’re using? See EEWiki:// HowTo Determine My EE Version

    As far as the display of multiple events in a small calendar like that, you might want to look at the Solspace calender module to see if they have that functionality.

  • #3 / Mar 10, 2011 10:44am

    andrew_spl

    71 posts

    Hi Sue,

    Version number 1.6.9

    Here’s the code:

    {exp:weblog:calendar switch="calendartoday|calendarcell" weblog="event_entry" show_future_entries="yes" sort="asc"}
    <table id="event_calendar" summary="Event calendar" >
      <tr class="calendarheader">
        <th><div class="calendarmonthlinks"  id="back"><a href="http://{previous_path=events}"><<</a></div></th>
        <th colspan="5" id="calendardate">{date format="%F %Y"}</th>
        <th><div class="calendarmonthlinks" id="forward"><a href="http://{next_path=events}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}
        <td class='{switch}' align='center'> {entries}
          <div class="event_link"> <a href="/events/details/{entry_id}" title="{title}" class="vtip">{day_number}</a> </div>
          {/entries} </td>
        {/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}

    Hope that makes sense - thanks for your help.

    Andrew

  • #4 / Mar 10, 2011 5:40pm

    Sue Crocker

    26054 posts

    I’d have to test this in my EE1.7 install, but the advice I offered earlier about the Solspace calendar still stands.. you might want to reach out to them about ideas for additional functionality. Your other option is to use a full calendar - there is an example in the docs.. might that work for you?

  • #5 / Mar 11, 2011 5:04am

    andrew_spl

    71 posts

    Hi Sue,

    Many thanks for pointing me in the right direction. I’ll look up the Solspace option. (Sorry for posting the original query in the wrong section BTW.)

    Regards,

    Andrew

  • #6 / Mar 11, 2011 9:10am

    Sue Crocker

    26054 posts

    Hi, Andrew. I can’t replicate the problem you’re seeing using the default mini calendar that ships with EE 1.7.

    {exp:weblog:calendar switch="calendarToday|calendarCell"}
    
    <table class="calendarBG" border="0" cellpadding="5" cellspacing="1" summary="My Calendar">
    <tr>
    <th class="calendarHeader"><div class="calendarMonthLinks"><a href="http://{previous_path={my_template_group}/index}"><<</a></div></th>
    <th class="calendarHeader" colspan="5">{date format="%F %Y"}</th>
    <th class="calendarHeader"><div class="calendarMonthLinks"><a href="http://{next_path={my_template_group}/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}<td class='{switch}' align='center'><a href="http://{day_path={my_template_group}/index}">{day_number}</a></td>{/if}
    {if not_entries}<td class='{switch}' align='center'>{day_number}</td>{/if}
    {if blank}<td class='calendarBlank'> </td>{/if}
    {row_end}</tr>{/row_end}
    {/calendar_rows}
    </table>
    {/exp:weblog:calendar}

    If you use this code, what happens?

  • #7 / Mar 11, 2011 10:08am

    andrew_spl

    71 posts

    Thanks Sue,

    I’ll give it a go.

    Andrew

  • #8 / Mar 11, 2011 4:03pm

    Sue Crocker

    26054 posts

    Sounds good.. let us know what you find out. We’ll be here.

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

ExpressionEngine News!

#eecms, #events, #releases