[Grok-dev] How to effectively reuse viewlets?

Martin Aspeli optilude+lists at gmail.com
Sun Oct 18 07:29:31 EDT 2009

prinzdezibel wrote:

> It worked. Wouldn't it be good to have something more concise in grok to
> achieve this? It's a little bit verbose and it's not necessarily clear what
> the intention is.

Viewlets kinda suck, to be honest. They are useful for certain use 
cases, but as a general way to build composite UIs, they suffer from 
some limitations.

The way Plone solves this is to have a viewlet manager that consults a 
persistent (site-local) registry on (a) which viewlets to hide and (b) 
in which order to show the remaining viewlets. There's a GUI to hide and 
re-order things (@@manage-viewlets). This solves a few problems, but 
realistically, it's still not great.


Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book

More information about the Grok-dev mailing list