[pLog-general] Calendar form customizing

Oscar Renalias oscar at renalias.net
Mon Apr 11 16:08:09 GMT 2005


I need to look into this, the idea sounds reasonable but speaking about 
not breaking templates anymore... Transforming the calendar {$calendar} 
from a ready-made html string into an object would break them all 
again.

That's why I am thinking that this feature could be provided as a 
plugin. The calendar that we've got at the moment has proven to be more 
than suitable for anyone but people who need more can always get more 
with a plugin. I suppose that the plugin should be able to render 
itself in several different ways (like you suggested)

I am not sure how much of an effort it is to do this, perhaps anybody 
could give it a try? We've already got some code somewhere to generate 
links to dates in the calendar as well as our custom calendar renderer. 
Doesn't look like it could take long.

Oscar

On 11 Apr 2005, at 18:34, Michael Paluchowski wrote:

>
> Monday, April 11, 2005, 9:45:28 AM, you wrote:
>
>>> Kind see this site: http://carol.bluecircus.net/ , see the calendar
>>> under the banner.
>
> Well, that site's code kinda sucks... I mean 350 errors on validation
> - that's nasty.
>
> But back to the calendar:
>
>> CSS is more than enough to accomplish this. If you look at Mark's
>> example, even if laid out horizontally the calendar is one big table
>> styled with CSS so I don't think there will be any problem
>> customizing yours the same way. Just make sure to take a look at all
>> the CSS classes used and change them to suit your needs in your
>> stylesheet.
>
> Well, it's not that simple, since that site's calendar is a (messy)
> one-row table, and pLog's calendar has around 5 rows, 7 cells each.
>
> What I'd like to achieve is a calendar with the name of the month and
> all days given in one, vertical column. Doing it with the current HTML
> for the table would require quite a bit of CSS hacking and I doubt the
> end effect would be satisfactory.
>
> It would be far easier, if for example the $calendar template variable
> would be an object, displaying different layouts according to the
> designers will, ie.:
>
> {$calendar->standard()} - shows what is being shown now
> {$calendar->row()} - all in one row
> {$calendar->column()} - all in one column
>
> What's your opinion on implementing such a feature?
>
>
> -- 
>  Michael Paluchowski
>    mailto:paluchowski at post.pl
>      http://www.buggybrain.com
> ______________________________________________________redmagic___
>
>  I do not fear computers. I fear the lack of them. / Isaac Asimov
>
> _______________________________________________
> pLog-general mailing list
> pLog-general at devel.plogworld.net
> http://devel.plogworld.net/mailman/listinfo/plog-general
>




More information about the pLog-general mailing list