Override a Plone 3.0 portlet
Martin Aspeli
optilude at gmx.net
Thu Sep 13 10:39:53 UTC 2007
Tim Hicks wrote:
>
> 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.
>
Only for a Products.* product; Otherwise, you'll need a slug. See
http://plone.org/documentation/'tutorial/buildout.
Martin
--
View this message in context: http://www.nabble.com/Override-a-Plone-3.0-portlet-tf4434861s20094.html#a12652441
Sent from the Product Developers mailing list archive at Nabble.com.
More information about the Product-Developers
mailing list