Override a Plone 3.0 portlet
Tim Hicks
tim at sitefusion.co.uk
Thu Sep 13 10:26:07 UTC 2007
Eric Bréhault 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 ?
I think you need to put the configuration into an 'overrides.zcml' file,
rather the 'configure.zcml'. If overrides.zcml is in your
product/package root, then it should get picked up automatically, I believe.
Tim
More information about the Product-Developers
mailing list