[Product-Developers] Re: Portlet order
optilude at gmx.net
Wed Jul 30 22:16:05 UTC 2008
Vitaliy Podoba wrote:
> Christian Thieme <christian at ...> writes:
>> is there a way to change the portlet order in a way that from a parent
>> inherited portlets are shown before the actual contexts portlets?
> As I know, this is possible only by overriding standard plone portlets retriever
> (plone.portlets.retriever.PortletRetriver class, method getPortlets) adapter
> which is used by plone's portlet managers.
Correct. You'll need to override (either globally or per-context) the
IPortletRetriever adapter, which adapts a context and a portlet manager
(whose portlets it's rendering). Look at plone.portlets.retriever for
the default implementation.
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