Bug #16833 Accepted

channel:calendar method fails with multiple entries tag pairs

Version: EE 2.5.5 Reporter: Joe Michaud

The exp:channel:calendar tag returns only the same data when multiple instances of the entries tag pair are used. The data returned is from the last tag pair (I’ve only tested with two so I’m making some assumptions here).

This is very reminiscent of a bug I reported in the old pagination code in EE 2.1.

I have a project depending on the ability to use the entries tag pair twice in the same calendar_rows loop so I will probably start trying to fix it myself tonight…  If you beat me to the solution please share it with me!

{calendar_rows}
{row_start}<tr>{/row_start}

 {if entries}
 <td class='{switch}' align='center'>
  
  <a href="http://{day_path=channel/index}class={entries}{status}{/entries}">_   {day_number}_   <span class="tooltip"><span>{entries}{entry_date format="%M, %j %Y"}_{title}_{/entries}</span></span>_  </a>
  
 </td>
 {/if}

 {if not_entries}
 <td class='{switch}' align='center'><div>{day_number}</div></td>
 {/if}

 {if blank}
 <td class='calBlank'><div>{day_number}</div></td>
 {/if}

{row_end}</tr>{/row_end}
{/calendar_rows}

You may also view the problem in the mini-calendar here:
http://kaufman.ehclients.com/sms/

Look at October 10, 2011 or November 22-23.

  • Nobody has said anything yet.

You must be signed in to comment on a bug report.

ExpressionEngine News

#eecms, #events, #releases