Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Event Calendar modification


Go to End


3 Posts   1758 Views

Avatar
dryfly

Community Member, 2 Posts

25 September 2009 at 9:57am

I apologize if this has been answered elsewhere, but I did not find anything.

Is there a way to change the calendar widget to start the week on Sunday (traditional US) instead of Monday. I have seen it on a couple instances, but I can't find any documentation for it.

Thank you,

-Todd

Avatar
UncleCheese

Forum Moderator, 4102 Posts

25 September 2009 at 11:20am

No. :(

I hacked that thing to pieces to get it to do what I wanted to, and by the time I realized that I was doing a great disservice to Europeans by starting the week on Sunday, it was far too late to make it a configurable option.

I'm wondering if you would have better luck with LiveCalendarWidget. The advantages being:

1) It's PHP based rather than Javascript based, and I believe PHP's locale awareness will return Monday for the 0th day of the week, but I'm not sure.

2) You can create your own template. Just copy the LiveCalendarWidget.ss into your theme directory templates/ folder, run a build, and hack away!

Avatar
janulka

Community Member, 80 Posts

24 June 2010 at 11:56pm

anybody plz who has modified LiveCalendarWidget.ss to start the day on monday, could you post the code?

thank you :)