CGCalendar: issue with upcoming list template
Posted: Tue Oct 13, 2015 5:47 pm
Hi,
I am moving content from CMS 1.11.4 / CGCalendar 1.10.4 to CMS 1.12 /
CGCalendar 1.15.5.
I had an upcoming list template set-up in CGCalendar 1.10.4 so that the words "Upcoming Events" would only show if there were events (see below):
{if isset($pastitems) && $pastitems == 0}
<p>UPCOMING EVENTS:</p>
{foreach from=$events key=key item=event}
...calendar code...
{/foreach}
{/if}
When I transferred the template to CGCalendar 1.15.5, the words "Upcoming Events" will appear regardless if there are events listed or not. There is no difference in the template at all, it was a direction copy/paste. Why would the template work in one version and not the other?
Thank you!
I am moving content from CMS 1.11.4 / CGCalendar 1.10.4 to CMS 1.12 /
CGCalendar 1.15.5.
I had an upcoming list template set-up in CGCalendar 1.10.4 so that the words "Upcoming Events" would only show if there were events (see below):
{if isset($pastitems) && $pastitems == 0}
<p>UPCOMING EVENTS:</p>
{foreach from=$events key=key item=event}
...calendar code...
{/foreach}
{/if}
When I transferred the template to CGCalendar 1.15.5, the words "Upcoming Events" will appear regardless if there are events listed or not. There is no difference in the template at all, it was a direction copy/paste. Why would the template work in one version and not the other?
Thank you!