Calendar: Display current holiday-items on frontpage

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
Arno

Calendar: Display current holiday-items on frontpage

Post 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?
dlaitila
New Member
New Member
Posts: 8
Joined: Tue May 06, 2008 12:32 am

Calendar 0.7.14 how do you have Sunday as the first day

Post 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.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Calendar: Display current holiday-items on frontpage

Post 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
dlaitila
New Member
New Member
Posts: 8
Joined: Tue May 06, 2008 12:32 am

Re: Calendar: Display current holiday-items on frontpage

Post 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.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Calendar: Display current holiday-items on frontpage

Post 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
dlaitila
New Member
New Member
Posts: 8
Joined: Tue May 06, 2008 12:32 am

Re: Calendar: Display current holiday-items on frontpage

Post 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.
dlaitila
New Member
New Member
Posts: 8
Joined: Tue May 06, 2008 12:32 am

Re: Calendar: Display current holiday-items on frontpage

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

Re: Calendar: Display current holiday-items on frontpage

Post 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 :)
Locked

Return to “Modules/Add-Ons”