Page 1 of 1

Calendar: Display current holiday-items on frontpage

Posted: Tue Apr 22, 2008 11:43 am
by Arno
I'm using calendar 7.14 and I've created all upcoming holiday's as calendar-items. What I'd like to do is display a message on my frontpage when there is a active holiday. Example: when this current week is a holiday, I'd like to see a message on my frontpage like "Happy Easter holiday".

Is is possible to create something like this?

Calendar 0.7.14 how do you have Sunday as the first day

Posted: Tue May 06, 2008 12:47 am
by dlaitila
So far, I have ONLY this text on the calendar page and it does display the monthly calendar properly.

{cms_module module="Calendar" table_id="big"}

My question is.... How do I get Sunday to be the first day of the week instead of Monday?

Do I change the parameter on the calendar page or do I add something to the template?

Please put the text exactly as I should copy and paste it for me. Thanks.

Re: Calendar: Display current holiday-items on frontpage

Posted: Tue May 06, 2008 4:53 am
by RonnyK
@Arno,

what about making the holidays a specific Category in Calendar and then calling that Category specific....

@dlaitila,

Check the help of the Calendar module.... it reads...
first_day_of_week Set to the first day of the week as a number between 0 and 6 (0 = Sunday). Default is 1 (Monday). This option only works if display is set to "calendar". (optional)


Ronny

Re: Calendar: Display current holiday-items on frontpage

Posted: Tue May 06, 2008 4:16 pm
by dlaitila
Thanks, Ronny, I have read that but the problem is that I don't know exactly what to put or how to format it on the page. Please write it exactly as it should be written. Is this done on the stylesheet, if so which one? Or do I put it on the calendar page itself?

first_day_of_week Set to the first day of the week as a number between 0 and 6 (0 = Sunday). Default is 1 (Monday). This option only works if display is set to "calendar". (optional)

Do I put ...

{cms_module module="Calendar" table_id="big""calendar".(optional)first_day_of_week=0}

As you can see, I am clueless how to write it.

Re: Calendar: Display current holiday-items on frontpage

Posted: Tue May 06, 2008 6:06 pm
by RonnyK
dlaitila,

put
first_day_of_week='0'
additionally in your calling of Calendar, so if the calling is like...

{cms_module module="Calendar" table_id="big" first_day_of_week='0'}

it will work. Optional, means that this parameter can optionally be inserted in the calling.....

Ronny

Re: Calendar: Display current holiday-items on frontpage

Posted: Tue May 06, 2008 11:37 pm
by dlaitila
Thank you... All I had to put on the calendar page was this the following:

{cms_module module="Calendar" table_id="big" first_day_of_week='0'}

and now the first day of the calendar is Sunday. Everything works fine now.

Re: Calendar: Display current holiday-items on frontpage

Posted: Mon May 26, 2008 12:18 am
by dlaitila
How do you make the font size bigger for the Month caption on the calendar? I'm using the big calendar grid and would like to have just the month at the top of the calendar larger. Thanks for your help. I'm using calendar 0.8.1 and CMS 1.2.4

Re: Calendar: Display current holiday-items on frontpage

Posted: Tue May 27, 2008 8:07 pm
by Bob
dlaitila wrote: How do you make the font size bigger for the Month caption on the calendar? I'm using the big calendar grid and would like to have just the month at the top of the calendar larger. Thanks for your help. I'm using calendar 0.8.1 and CMS 1.2.4
Hi dlaitila,

That sounds more of question regarding the CSS in Calendar and more appropriate for the Design and Layout board (I'm finding this out more as I go thru the various boards)

Try looking in http://forum.cmsmadesimple.org/index.php/board,20.0.html)

To get you started, you should have an attached CSS to your Template that holds the Calendar... look into that, and also look into the various Calendar Templates to see what CSS the templates are calling for.

Hopefully that helps you :)