[Product-Developers] Re: how to fetch another object's portlets?

Martin Aspeli optilude+lists at gmail.com
Mon Jul 13 12:20:16 UTC 2009


Kees Hink wrote:
> There is no way to directly define portlets for a page template (old school
> skins folder) or a view (view class). 

Mmm, you can fill the column_one_slot or column_two_slot as you want, 
but it may be harder to re-use an existing portlet, indeed.

> As a workaround, i would like to fetch
> the portlets from another object. This other object would be created just for
> the purpose of defining portlets on it, allowing content managers to assign
> portlets there.

Why do you want to do this? Why not just define the portlets where you 
want the portlets?

> So my question is how to get a portlet manager to render from another context?

You can create a custom IPortletRetriever adapter that does this.

Martin

-- 
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 Product-Developers mailing list