CGCalendar: issue with upcoming list template

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
cpansewicz
Forum Members
Forum Members
Posts: 142
Joined: Fri Jun 17, 2011 12:22 am

CGCalendar: issue with upcoming list template

Post 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!
cpansewicz
Forum Members
Forum Members
Posts: 142
Joined: Fri Jun 17, 2011 12:22 am

Re: CGCalendar: issue with upcoming list template

Post by cpansewicz »

Hi,

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

Thank you!
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: CGCalendar: issue with upcoming list template

Post 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.
Post Reply

Return to “Modules/Add-Ons”