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!
CGCalendar: issue with upcoming list template
-
cpansewicz
- Forum Members

- Posts: 142
- Joined: Fri Jun 17, 2011 12:22 am
-
cpansewicz
- Forum Members

- Posts: 142
- Joined: Fri Jun 17, 2011 12:22 am
Re: CGCalendar: issue with upcoming list template
Hi,
I haven't heard back from anybody regarding this. Would anybody have input?
Thank you!
I haven't heard back from anybody regarding this. Would anybody have input?
Thank you!
Re: CGCalendar: issue with upcoming list template
You probably have to debug using {get_template_vars} inside the specific template to see what variables are availabel and possibly their value.

