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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
sugna
Forum Members
Forum Members
Posts: 196
Joined: Wed Oct 10, 2007 3:04 pm

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

Post 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
marisafal
Forum Members
Forum Members
Posts: 29
Joined: Thu Mar 20, 2008 9:04 pm

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

Post by marisafal »

Hey Sugna, I'm looking for the same thing - have you found the solution to your problem? 
User avatar
sugna
Forum Members
Forum Members
Posts: 196
Joined: Wed Oct 10, 2007 3:04 pm

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

Post by sugna »

No responses yet. I have started on other sites if I come up with something I'll post it back.

Shane
marisafal
Forum Members
Forum Members
Posts: 29
Joined: Thu Mar 20, 2008 9:04 pm

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

Post 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.
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm

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

Post 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
User avatar
sugna
Forum Members
Forum Members
Posts: 196
Joined: Wed Oct 10, 2007 3:04 pm

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

Post 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
Post Reply

Return to “CMSMS Core”