Page 1 of 1

[SOLVED] CGCalendar-Messaging when no events are available?

Posted: Thu Feb 06, 2014 10:32 am
by rbaby
Hello,

I scoured and didn't really find much luck, but I want my page to display messaging when there are no events in the system. I tried:

{if $events|@count == 0}No events{/if} per http://dev.cmsmadesimple.org/bug/view/8361

But didn't seem to work even though it says it was Fixed last year. Any guidance would be appreciated.

Thanks!

Re: CGCalendar - Messaging when no events are available?

Posted: Thu Feb 06, 2014 10:49 am
by paulbaker
rbaby wrote:But didn't seem to work
What exactly happened? Error message?

Post your system information.

Re: CGCalendar - Messaging when no events are available?

Posted: Thu Feb 06, 2014 6:48 pm
by Wishbone
{foreach blah blah}
{* display events *}
{foreachelse}
No Events
{/foreach}

Re: CGCalendar - Messaging when no events are available?

Posted: Thu Feb 06, 2014 10:10 pm
by rbaby
Wishbone wrote:{foreach blah blah}
{* display events *}
{foreachelse}
No Events
{/foreach}
Thank you, this worked perfect.

Re: CGCalendar - Messaging when no events are available?

Posted: Fri Feb 07, 2014 1:26 am
by Wishbone
I wish other languages had this feature.