Hi Gilles,
dumb question: did you check if your layer has been registered and has
marked the request?
If it doesn't I think you can work around this by giving a custom name
to your viewlet and add a viewlets.xml where you hide the original one
and display yours.
Cheers,
SimO
On 09/02/12 09:18, Gilles Lenfant wrote:
Le 9 février 2012 06:54, ajung <[email protected]
<mailto:[email protected]>> a écrit :
If you need to override only the template then use z3.jbot.
Hi,
No, I need to override only the viewlet class. z3c.jbot can't help me
in that case.
Best...
--
Gilles Lenfant
-aj
Gilles Lenfant-2 wrote
>
> Hi,
>
> Sorry for the disturbance, but I'm actually stuck overriding a
standard
> viewlet of Plone (4.1): The "plone.links.RSS" that goes in the
HTML head.
>
> Though I carefully read and practiced the tutorial
>
http://plone.org/documentation/kb/customizing-main-template-viewlets/overriding-a-class-viewletI
> always have the original Plone viewlet from plone.app.layout.links.
>
> Some pointers that show how I did this :
>
> My component's layer :
>
https://github.com/glenfant/aws.authrss/blob/master/src/aws/authrss/interfaces.py#L8
>
> Its installation through GenericSetup works correctly since it
shows in
> ZMI
> in the "Components" tab of the Plone site.
>
> The ZCML registration of the viewlet including that layer selector:
>
https://github.com/glenfant/aws.authrss/blob/master/src/aws/authrss/browser/configure.zcml#L86
>
> The viewlet class itself:
>
https://github.com/glenfant/aws.authrss/blob/master/src/aws/authrss/browser/viewlets.py#L10
>
> I'm stuck finding why this does not work as expected (the
original viewlet
> is rendered in place of my custom viewlet). Any help is welcome.
And so
> many thanks by advance for any pointer.
>
> --
> Gilles Lenfant
>
> _______________________________________________
> Product-Developers mailing list
> [email protected]
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
--
View this message in context:
http://plone.293351.n2.nabble.com/Stuck-overriding-a-stock-Ploine-viewlet-tp7266769p7268283.html
Sent from the Product Developers mailing list archive at Nabble.com.
_______________________________________________
Product-Developers mailing list
[email protected]
<mailto:[email protected]>
https://lists.plone.org/mailman/listinfo/plone-product-developers
_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-product-developers
_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-product-developers