Also when i rename the month to danish names the calendar kinda fucks up and wont go further in the months than one month ahead and wont go back.. any idea why?
I have a version that I did for someone that used month numbers instead of names (should have done that from the outset). It was for Thorsten Hoffman (http://our.umbraco.org/member/1706). I can't actually find the updated xslt at the minute - perhaps Thorsten will see this and send the code?
Or if I get time I'll update - I've been threatenining to update this package for a while now!
Here's an updated eventarea xslt file that uses month numbers instead of hardcoded names. There is still a variable that converts numbers to names, but you'll only need to change the language once in here and everything else should continue to work. You'll also need to change the table headings with the day abbreviations.
Changing the first day to fx monday
Hi,
How do I change the first day in the month to Monday?
Also when i rename the month to danish names the calendar kinda fucks up and wont go further in the months than one month ahead and wont go back.. any idea why?
Hi Daniel
How are you trying to rename the weeknames etc.? Can you show us some code maybe?
/Jan
Hi Daniel
I have a version that I did for someone that used month numbers instead of names (should have done that from the outset). It was for Thorsten Hoffman (http://our.umbraco.org/member/1706). I can't actually find the updated xslt at the minute - perhaps Thorsten will see this and send the code?
Or if I get time I'll update - I've been threatenining to update this package for a while now!
To change the ordering of days I'd look at the CalendarWeek template, but I haven't tried doing this myself yet
@Jan I'm just using renaming the months, they are hardcoded.
It's strange that the calendar changes totally when i rename them??
Hi Daniel
Here's an updated eventarea xslt file that uses month numbers instead of hardcoded names. There is still a variable that converts numbers to names, but you'll only need to change the language once in here and everything else should continue to work. You'll also need to change the table headings with the day abbreviations.
Starting the week on a monday is a bit tricker
Dan
Actually, sorry. I've made the month variable a little more resistant to bad input (it defaults to the current month)
last edit!
is working on a reply...