[Framework-Team] Re: Re: Move footer.pt and colophon.pt to viewlets?
Martin Aspeli
optilude at gmx.net
Fri Jun 8 09:13:35 UTC 2007
On 6/8/07, Alexander Limi <limi at plone.org> wrote:
> On Fri, 08 Jun 2007 01:02:28 -0700, Wichert Akkerman
> <wichert at wiggy.net> wrote:
>
> > Previously David Convent wrote:
> >> As soon as your customizations involve using the viewlets machinery,
> >> having a theme compatible with both Plone 2.5 and Plone 3.0 is
> >> impossible.
> >
> > Or as soon as you touch main_template, or as soon as you change an edit
> > view, or probably a few other things.
>
> Right. I guess that's another reason to get the viewlets structure right
> in 3.0. :)
>
> (footer and whatnot)
I would agree. With the benefit of hindsight, I think (almost)
anywhere in main_template that we use a metal:use-macro should be a
viewlet, because it makes it much easier to re-order, hide and move
elements. For example, I need to put something abovethe content views
(green tabs) inside the main column, which I can't do without touching
main_template. More or less anything else I've wanted to do, I've been
able to do with viewlets.xml and a couple of viewlet re-registrations,
which feels a lot more future-proof.
I wouldn't mind doing some refactoring here (moving from includes into
viewlets), since I need to do it for this custom skin anyway, but
Wiggy needs to agree it's okay at this late stage. I don't think it'd
be a problem to keep the HTML output the same, but it'd mean
deprecating a few more "include" type skin templates and making a few
more viewlets in their place.
Wiggy?
Martin
More information about the Framework-Team
mailing list