Calendar 0.3
Calendar 0.3
I've just put up Calendar 0.3 on the wiki.
Changes:
* Initial support for “From” and “To” dates for events.
* Ability to filter admin list of events by category.
Note that if you upgrade from 0.2 or 0.1, it should update the database correctly, but it might not!
Todo:
* Work out a way of displaying more than just the start date for multiple date events in the calendar view.
Items requested (so I don't forget!):
* Category display in list view.
* Make localisation easier.
Changes:
* Initial support for “From” and “To” dates for events.
* Ability to filter admin list of events by category.
Note that if you upgrade from 0.2 or 0.1, it should update the database correctly, but it might not!
Todo:
* Work out a way of displaying more than just the start date for multiple date events in the calendar view.
Items requested (so I don't forget!):
* Category display in list view.
* Make localisation easier.
Calendar 0.3
Thank you for this excellent calendar module.
I have tried both 0.2 and 0.3 but I can't get it to link dates on the calendar to events. If I set summaries to "true" I get a single bulleted reference to the latest entry which then breaks the calendar layout.
What should I do?
Thanks
I have tried both 0.2 and 0.3 but I can't get it to link dates on the calendar to events. If I set summaries to "true" I get a single bulleted reference to the latest entry which then breaks the calendar layout.
What should I do?
Thanks
Re: Calendar 0.3
You need to apply some CSS styles to the calendar. There's a "table_id" option to make this easier.jorj wrote:Thank you for this excellent calendar module.
I have tried both 0.2 and 0.3 but I can't get it to link dates on the calendar to events. If I set summaries to "true" I get a single bulleted reference to the latest entry which then breaks the calendar layout.
What should I do?
Thanks
See this post and this one for example styles.
I'm not sure why you only get a single entry. You should get a bulleted entry for each event in that month.
Calendar 0.3
hi!
first of all thank you for this essential module!
but I have a little problem:
I put
into Calendar.function.php to have the days and months in german language. But insteat of e.g. "März" i'm getting "M?rz".
How do I force Calendar not to make the "ä" into "?".
first of all thank you for this essential module!
but I have a little problem:
I put
Code: Select all
setlocale(LC_ALL, 'de_DE@euro', 'de_DE', 'de-DE', 'de', 'ge', 'de_DE.ISO_8859-1', 'German');
How do I force Calendar not to make the "ä" into "?".
Re: Calendar 0.3
I am still pretty new here...
How do you install this module? I am using cmsms 0.8.2
Mads
How do you install this module? I am using cmsms 0.8.2
Mads
Re: Calendar 0.3
Here I go again - seems that I'm just there to wish for changes or functions - hope you don't get fed up with this...
I really like Calendar (at least when it's set to "list" mode - I'll explain later why), but run into some problems that could surely be solved if I knew more about PHP, but since most people (not most people on this forum, but others) don't, you might consider helping with some issues by adding options to the interface:
I really like Calendar (at least when it's set to "list" mode - I'll explain later why), but run into some problems that could surely be solved if I knew more about PHP, but since most people (not most people on this forum, but others) don't, you might consider helping with some issues by adding options to the interface:
- Are there localizations - or do you have an idea how or where I can get the means to add them? I might be able to work arount this problem, but only if I know for sure that I have to...
- How about a possibility to change the list's header's appearence? I'd like to have a "Month(name) Year" header for a section - a month, that is (and I need this in German to really use it, but that's a different story); now the date is displayed the same way the events are, which is kind of confusing (since I set this to "%d.%m.%Y" or "d%.%m.%Y %H:%M, respectively - but a month doesn't really consist of its first day, which in my eyes is suggested by the way it's displayed now). For the events the way they're displayed now is find - so I'm stuck if I don't want to mess with the code. But I'm aware that this would be a general setting for the whole Calendar, so there might be the need for an extra "Preferences" section in the admin panel.
- And finally, here's why I like list mode better then calendar mode: If you don't have an event each day (or at least on any day of at least one week of a month), it gets terribly distorted when displayed. This might be a browser issue, though (I'm using Firefox 1.0), or solveable via CSS - let me know if this is the case.
Re: Calendar 0.3
Moonmind:
Try http://forum.cmsmadesimple.org/index.ph ... ml#msg2703 or http://forum.cmsmadesimple.org/index.ph ... ml#msg2710 for examples of CSS use with the calendar view to make it look good. Also http://www.akrabat.com/testbed/index.php?page=Calendar shows an example in use.
Date format can be selected in the{cms_module} tag. Check the Help for the attribute used. I'll have a look at adding another one for the section header. Certainly having the day in the headline doesn't make sense
Module localisation is on the wishy's todo list as far as I know. If it isn't, I'll try and have a look at it in a couple of weeks. The main calendar month names are supposed to be picked up from the locale set for the webserver.
Greg: I haven't looked at clean urls. Will find out what can be done.
Try http://forum.cmsmadesimple.org/index.ph ... ml#msg2703 or http://forum.cmsmadesimple.org/index.ph ... ml#msg2710 for examples of CSS use with the calendar view to make it look good. Also http://www.akrabat.com/testbed/index.php?page=Calendar shows an example in use.
Date format can be selected in the{cms_module} tag. Check the Help for the attribute used. I'll have a look at adding another one for the section header. Certainly having the day in the headline doesn't make sense

Module localisation is on the wishy's todo list as far as I know. If it isn't, I'll try and have a look at it in a couple of weeks. The main calendar month names are supposed to be picked up from the locale set for the webserver.
Greg: I haven't looked at clean urls. Will find out what can be done.
Re: Calendar 0.3
Thanks for the tips - I realise that I had not really grapped the CSS handling of the CMS - it's a nice side effect that I've had a look at this finally (I was working with templates directly up to now).
If what you say about the months' names is true, I'm somewhat stuck - if they set up the webserver here in english, I'll have to find another way of getting my german set. But if you add a way to format section (month) headers, I'll be able to work around - so that'd be great.
If what you say about the months' names is true, I'm somewhat stuck - if they set up the webserver here in english, I'll have to find another way of getting my german set. But if you add a way to format section (month) headers, I'll be able to work around - so that'd be great.
Re: Calendar 0.3
Moonmind:
I solved this by adding
in line 20 of Calendar.module.php
I don't know which one of these definitions does it's job, but I have my months and days auf deutsch now
I solved this by adding
Code: Select all
setlocale(LC_ALL, 'de_DE@euro', 'de_DE', 'de-DE', 'de', 'ge', 'de_DE.ISO_8859-1', 'German');
I don't know which one of these definitions does it's job, but I have my months and days auf deutsch now

Re: Calendar 0.3
thx for the tip - will try that asap.
Re: Calendar 0.3
A small question about styling:
In the lists both to and from date are included by default. In most cases I would not care about the to- date. I found that it is possible to sett to-date=from date to suppress the to-date in the lists.
For the user this is not so easy to remember. It would be better to suppress this by applying appropriate tags:
When I look at the resulting HTML I see this:
Could it be split in a 'calendar-date-from' and a 'calendar-date-to' ?
In the lists both to and from date are included by default. In most cases I would not care about the to- date. I found that it is possible to sett to-date=from date to suppress the to-date in the lists.
For the user this is not so easy to remember. It would be better to suppress this by applying appropriate tags:
When I look at the resulting HTML I see this:
Code: Select all
<div class='calendar-date-from'><span class='calendar-date-title'>Date: </span>10/mar/2005 08:30 to 10/mar/2005 12:30</div>