thank you !

I was sure it should exist a simple way
but I haven't found this How-to on Plone.org

Eric

On 9/13/07, Martin Aspeli <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Eric Bréhault-2 wrote:
> >
> > Hello,
> >
> > In plone 3.0, I try to override a Plone portlet
> >
> > If I declare my portlet that way:
> >     <plone:portlet
> >         name="portlets.MyLogin"
> >         interface=".mylogin.IMyLoginPortlet"
> >         assignment=".mylogin.Assignment"
> >         renderer=".mylogin.Renderer"
> >         addview=".mylogin.AddForm" />
> > it works fine
> >
> > But I would like to override the Plone 3.0 Login portlet not to add a
> new
> > one, so I try to declare it that way:
> >     <plone:portlet
> >         name="portlets.Login"
> >         interface=".mylogin.IMyLoginPortlet"
> >         assignment=".mylogin.Assignment"
> >         renderer=".mylogin.Renderer"
> >         addview=".mylogin.AddForm" />
> >
> > And it fails. Unit test return a
> > zope.configuration.config.ConfigurationConflictError: Conflicting
> > configuration
> > actions, between my configure.zcml and the one from
> > plone/app/portlets/portlets
> >
> > So how can I tell Plone I just want to override one of its own portlet ?
> >
>
> Most likely, you want to override the view of the portlet, not the
> underlying logic. If you want to override the underlying logic, you can
> create a new portlet (maybe subclassing the original one), of course. To
> override the view (actually called the "renderer") you use the
> <plone:portletRenderer /> command.
>
> Note: You can also do what you just did in an overrides.zcml file. That
> overrides the whole thing.
>
> See:
> http://plone.org/documentation/how-to/override-the-portlets-in-plone-3.0
>
> Martin
>
> --
> View this message in context:
> http://www.nabble.com/Override-a-Plone-3.0-portlet-tf4434861s20094.html#a12652435
> Sent from the Product Developers mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Product-Developers mailing list
> [email protected]
> http://lists.plone.org/mailman/listinfo/product-developers
>
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to