Page 1 of 1

CGCalendar: issue with upcoming list template

Posted: Tue Oct 13, 2015 5:47 pm
by cpansewicz
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!

Re: CGCalendar: issue with upcoming list template

Posted: Tue Oct 27, 2015 4:29 am
by cpansewicz
Hi,

I haven't heard back from anybody regarding this. Would anybody have input?

Thank you!

Re: CGCalendar: issue with upcoming list template

Posted: Tue Oct 27, 2015 9:37 am
by velden
You probably have to debug using {get_template_vars} inside the specific template to see what variables are availabel and possibly their value.