I've been wrapping my head around this and googling for a while, but I can't seem to find the answer (while I think it should be quite simple).
I have a page where in the sidebar I call the upcoming events of the CGCalendar module. The thing is, sometimes the calendar will hold no upcoming events. In that case I would like to hide the calendar block.
I tried modifying my upcoming events template like:
Code: Select all
{if isset($events)}
{assign var="present" value="yes"}
{else}
{assign var="present" value="no"
{/if}But it seems that when no upcoming events are present, the upcoming events template is never even called, so the value for "present" is never set.
Now I'm trying to figure out how to check from my page template if the CGCalendar $events array is set, but I'm striking out. Anyone have any ideas?

