cancel
Showing results for 
Search instead for 
Did you mean: 

Configure calendar to start with Monday

wesley
Champ in-the-making
Champ in-the-making
Hi,

As there seems to be no way to change the calendar to start from Monday, could someone make this feature available through a configuration option, ie so people can choose whether the calendar starts with Monday or Sunday?

Thanks,
Wes  :idea:
5 REPLIES 5

strizzi
Champ in-the-making
Champ in-the-making
Did anyone find a way? I would really appreciate it.
If not - see posting above by wes!

thanks,
Philipp

mikeh
Star Contributor
Star Contributor
There is no configuration to allow this; it requires extra development work.

Please raise an enhancement request in JIRA.

Thanks,
Mike

kami10
Champ in-the-making
Champ in-the-making
This feature is quite important for some countries where the calendar starts on monday.

Smiley Sad I think its a good feature to think for future releases.

mikkle
Champ in-the-making
Champ in-the-making
There is no configuration to allow this; it requires extra development work.

Please raise an enhancement request in JIRA.

Thanks,
Mike

Mike,
https://issues.alfresco.com/jira/browse/ALF-5497 was created November last year, and not so much as a single comment (not even a "will do" or "won't fix").

While we wait for the devs to decide what to do with that request, could you or someone else point us noobs in the right direction by giving some pointers to where in the various script components changes need to be made in order to start the week with monday?
I could easily live with an override/hard-code hack to get this sorted.
I might consider looking into cooking up a way of configuring this from within Alfresco or Share and storing it as a global, site-local, or user-local property. This would, of course, be contributed back to the community.

Weeks starting on sunday is actually a blocking issue for my users. They are quite happy with Share, but we just can't use any of the calendar related features.

davidcognite
Star Contributor
Star Contributor
Hi Mikkle,

The decision on the priority of that ticket with project management at the moment, but I have pointed our localisation manager to it today. I'll update this thread with anything else I hear about it.

In terms of code, you'll need to touch a few different areas, I'm afraid:

The main Share calendar is rendered using the "Calendar: View Component" webscript. The code you'll want to look at is in:
view.get.html.ftl (which renders the initial template)
and then the events are added/rendered client side in each of the view:
calendar-view-week.js and
calendar-view-month.js as well as
calendar-view.js

To update the calendars elsewhere in Share is easier, in a recent release I added the Alfresco.util.calI18nParams function which loads various locale specific properties into the calendar widget - you'll just need to get that to set the START_WEEKDAY property & all YAHOO.widget.Calendar instances (e.g. mini-calendar, date pop ups in forms, etc) should pick up on it.

Give me a shout if you hit any issues or have any other questions.

HTH,
David.