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!
[SOLVED] CGCalendar-Messaging when no events are available?
[SOLVED] CGCalendar-Messaging when no events are available?
Last edited by rbaby on Fri Feb 07, 2014 9:35 am, edited 1 time in total.
- paulbaker
- 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?
What exactly happened? Error message?rbaby wrote:But didn't seem to work
Post your system information.
Re: CGCalendar - Messaging when no events are available?
{foreach blah blah}
{* display events *}
{foreachelse}
No Events
{/foreach}
{* display events *}
{foreachelse}
No Events
{/foreach}
Re: CGCalendar - Messaging when no events are available?
Thank you, this worked perfect.Wishbone wrote:{foreach blah blah}
{* display events *}
{foreachelse}
No Events
{/foreach}
Re: CGCalendar - Messaging when no events are available?
I wish other languages had this feature.