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

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
rbaby
Forum Members
Forum Members
Posts: 144
Joined: Thu Feb 07, 2008 10:28 pm

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

Post 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!
Last edited by rbaby on Fri Feb 07, 2014 9:35 am, edited 1 time in total.
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Location: Maidenhead, UK
Contact:

Re: CGCalendar - Messaging when no events are available?

Post by paulbaker »

rbaby wrote:But didn't seem to work
What exactly happened? Error message?

Post your system information.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: CGCalendar - Messaging when no events are available?

Post by Wishbone »

{foreach blah blah}
{* display events *}
{foreachelse}
No Events
{/foreach}
rbaby
Forum Members
Forum Members
Posts: 144
Joined: Thu Feb 07, 2008 10:28 pm

Re: CGCalendar - Messaging when no events are available?

Post by rbaby »

Wishbone wrote:{foreach blah blah}
{* display events *}
{foreachelse}
No Events
{/foreach}
Thank you, this worked perfect.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: CGCalendar - Messaging when no events are available?

Post by Wishbone »

I wish other languages had this feature.
Post Reply

Return to “Modules/Add-Ons”