Quote from: WeBe at Jun 01, 2007, 03:24 PM
At the same time I was working on my own calendar snippet, because I don’t like the use of javascript and the way the styling is controlled in Kalender. Also I wanted control of the starting day of the week, as you do.
It seems that I just did it, I only will give it one more test and post the result here. Well, it in deed sounds very familiar (too few time, too much to do with other things), but I just wanted the Mondays to be the first days, and sometimes, I then take time that is not really there
What’s that "own calendar snippet" you are talking about? Is it interesting for others yet? Or did you cancel that too?
So, I attached my version of Kalendar (I call it 1.1a). I have changed 2 things:
1) Added new parameter
&firstDayOfWeek
Use 0 for Sunday (this is the default value), 1 for Monday and so on.
2) The overDiv-DIV is no longer output by default. The overLib adds that DIV automagically if it can’t find it. For my CSS-layout this was the best solution, because the DIV is inserted just before the end of the BODY and that’s outside my Layout-DIVs.
For those who prefer to have the DIV in the old place, just add
&forceOverLib=`1` to the snippet call.
I cannot guarantee that my changes are free of bugs, but I did not change too much. I’d appreciate to hear from you if it works as you expected it to work.
Martin