Forums / Developer / First ezCalendar release
Gabriel Ambuehl
Thursday 01 May 2003 7:00:01 am
Grab it here http://ez.no/developer/ez_publish_3/contributions/ezcalendar
Visit http://triligon.org
Paul Forsyth
Thursday 01 May 2003 1:07:03 pm
Gabriel,
I've just commented on your calendar module. I like it.
Apologies for the formatting of the comment - i didnt realise the comment field act like a text field instead of a xml text field :)
paul
geovanni rosetto
Thursday 01 May 2003 2:31:50 pm
Gabriel, Thanks for your time developing your module and for contributing it to the community.I'll download it as soon as I get my machine ready to install Exponential.
Best regards,
geo
Paul Borgermans
Friday 02 May 2003 1:10:08 am
Why didn't you use content classes/objects for it? Right now it is rather "isolated" from the other content objects and hence difficult to extend and you loose the benifits of the rest of Exponential (related objects, versioning, ...).
But of course, it is already useful as it stands now
Good job
Paul
eZ Publish, eZ Find, Solr expert consulting and training http://twitter.com/paulborgermans
Friday 02 May 2003 1:43:06 am
Hey, its in fact also a good example for those who want to port other "foreign" applications quickly
Friday 02 May 2003 4:45:11 am
Why not content classes?
Basically, I was bored one day (note that I don't really do anything this summer except waiting for university to start in October so stay tuned for other modules) and decided it would be rather easy to write a calendar. Turns out it's far from trivial (ever noticed how screwed our time system is? There are days of 86400 seconds, weeks with 7 days that don't give a damn about month boundaries and to top it off, months aren't always the same length either) so after I had the time stuff sorted, I was already way over the time I had estimated.
Additionally, I had to realize that a sane display is hard to do without CSS and a lot of custom code (there are about 150 lines that render week and day pages) and the content module doesn't really provide very much to enable you to do this kind of stuff without a lot of cumbersome templating (I find it's orders of magnitude easier to just code it in standard PHP, it's not like anyone would go change the design considering how hard it is to come up with a sane one anyway).
Furthermore, I didn't feel it makes a lot of sense to have versioning in a calendar and it's much easier to just use ezDB instead of ezContent objects as I know SQL and the API documentation is rather thin on big parts of the backend stuff that is responsible for actually doing something.