Page 1 of 1

Need Calender to show "something" when there is no event

Posted: Wed Jul 23, 2008 9:25 pm
by sugna
Need Calender help.

Can anyone share the php with me to show a message if there is no current or upcoming calender event.

The jobs module does this. Currently when there is no event the Calender content area is blank. I would like it to say something like "There are no events at this time"

The coed would go in the "Upcoming" template

site: http://southaustincivic.org/

Thanks everyone.

Shane

Re: Need Calender to show "something" when there is no event

Posted: Mon Sep 01, 2008 5:07 pm
by marisafal
Hey Sugna, I'm looking for the same thing - have you found the solution to your problem? 

Re: Need Calender to show "something" when there is no event

Posted: Tue Sep 02, 2008 1:05 am
by sugna
No responses yet. I have started on other sites if I come up with something I'll post it back.

Shane

Re: Need Calender to show "something" when there is no event

Posted: Tue Sep 02, 2008 1:26 am
by marisafal
Thanks Sugna,
I put up a new post about it, perhaps someone will come across it.  If they do I'll send along to you.

Re: Need Calender to show "something" when there is no event

Posted: Tue Sep 02, 2008 6:42 am
by Russ
It would be SMARTY not PHP and would be in the Calendar Module Upcoming template in Admin, I don't have the original code to hand here, but if you look you will see a loop for the items to be listed, just set up a condition, so if the return for the loop is empty then display your message? Or indeed create your own template and call that?

Is this what you were looking for?

Russ

Re: Need Calender to show "something" when there is no event

Posted: Tue Sep 02, 2008 12:02 pm
by sugna
This is used in the Jobs Module. I'm more of a designer then a programmer but I look for it in the jobs templates.
And see what I can find.

Shane