Am Mittwoch, den 30.07.2008, 23:16 +0100 schrieb Martin Aspeli:
> Vitaliy Podoba wrote:
> > Christian Thieme <[EMAIL PROTECTED]> writes:
> > 
> >> Hello,
> >> 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?
> >>
> >> Christian
> >>
> > 
> > 
> > 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 
> 
> 


I tried to override the adapter globally, but had no success.

If i just copy 
    <adapter factory=".retriever.PortletRetriever" />

from plone.portlets i get an ConflictError.

If i use 
    <adapter
        name="my.portlet.retriever"
        factory=".retriever.PortletRetriever"
        />

my shiny new adapter simply is ignored.

So how do i override adapters globally?

Thanks,
Christian


_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to