<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Gilles,<br>
<br>
dumb question: did you check if your layer has been registered and
has marked the request?<br>
<br>
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.<br>
<br>
Cheers,<br>
SimO<br>
<br>
On 09/02/12 09:18, Gilles Lenfant wrote:
<blockquote
cite="mid:CAJ8oE9JDdBf9eBRGLVTkeM6M3nJf0yGXZK5oWNvVh6rFJM1SWA@mail.gmail.com"
type="cite">Le 9 février 2012 06:54, ajung <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:lists@zopyx.com">lists@zopyx.com</a>></span>
a écrit :<br>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
If you need to override only the template then use z3.jbot.<br>
<br>
</blockquote>
<div><br>
Hi,<br>
<br>
No, I need to override only the viewlet class. z3c.jbot can't
help me in that case.<br>
<br>
Best... <br>
-- <br>
Gilles Lenfant<br>
<br>
</div>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
-aj<br>
<br>
<br>
Gilles Lenfant-2 wrote<br>
<div>
<div class="h5">><br>
> Hi,<br>
><br>
> Sorry for the disturbance, but I'm actually stuck
overriding a standard<br>
> viewlet of Plone (4.1): The "plone.links.RSS" that
goes in the HTML head.<br>
><br>
> Though I carefully read and practiced the tutorial<br>
> <a moz-do-not-send="true"
href="http://plone.org/documentation/kb/customizing-main-template-viewlets/overriding-a-class-viewletI"
target="_blank">http://plone.org/documentation/kb/customizing-main-template-viewlets/overriding-a-class-viewletI</a><br>
> always have the original Plone viewlet from
plone.app.layout.links.<br>
><br>
> Some pointers that show how I did this :<br>
><br>
> My component's layer :<br>
> <a moz-do-not-send="true"
href="https://github.com/glenfant/aws.authrss/blob/master/src/aws/authrss/interfaces.py#L8"
target="_blank">https://github.com/glenfant/aws.authrss/blob/master/src/aws/authrss/interfaces.py#L8</a><br>
><br>
> Its installation through GenericSetup works correctly
since it shows in<br>
> ZMI<br>
> in the "Components" tab of the Plone site.<br>
><br>
> The ZCML registration of the viewlet including that
layer selector:<br>
> <a moz-do-not-send="true"
href="https://github.com/glenfant/aws.authrss/blob/master/src/aws/authrss/browser/configure.zcml#L86"
target="_blank">https://github.com/glenfant/aws.authrss/blob/master/src/aws/authrss/browser/configure.zcml#L86</a><br>
><br>
> The viewlet class itself:<br>
> <a moz-do-not-send="true"
href="https://github.com/glenfant/aws.authrss/blob/master/src/aws/authrss/browser/viewlets.py#L10"
target="_blank">https://github.com/glenfant/aws.authrss/blob/master/src/aws/authrss/browser/viewlets.py#L10</a><br>
><br>
> I'm stuck finding why this does not work as expected
(the original viewlet<br>
> is rendered in place of my custom viewlet). Any help
is welcome. And so<br>
> many thanks by advance for any pointer.<br>
><br>
> --<br>
> Gilles Lenfant<br>
><br>
</div>
</div>
> _______________________________________________<br>
> Product-Developers mailing list<br>
> <a class="moz-txt-link-abbreviated" href="mailto:Product-Developers@.plone">Product-Developers@.plone</a><br>
> <a moz-do-not-send="true"
href="https://lists.plone.org/mailman/listinfo/plone-product-developers"
target="_blank">https://lists.plone.org/mailman/listinfo/plone-product-developers</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
View this message in context: <a moz-do-not-send="true"
href="http://plone.293351.n2.nabble.com/Stuck-overriding-a-stock-Ploine-viewlet-tp7266769p7268283.html"
target="_blank">http://plone.293351.n2.nabble.com/Stuck-overriding-a-stock-Ploine-viewlet-tp7266769p7268283.html</a><br>
Sent from the Product Developers mailing list archive at
Nabble.com.<br>
</font></span>
<div class="HOEnZb">
<div class="h5">_______________________________________________<br>
Product-Developers mailing list<br>
<a moz-do-not-send="true"
href="mailto:Product-Developers@lists.plone.org">Product-Developers@lists.plone.org</a><br>
<a moz-do-not-send="true"
href="https://lists.plone.org/mailman/listinfo/plone-product-developers"
target="_blank">https://lists.plone.org/mailman/listinfo/plone-product-developers</a><br>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Product-Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Product-Developers@lists.plone.org">Product-Developers@lists.plone.org</a>
<a class="moz-txt-link-freetext" href="https://lists.plone.org/mailman/listinfo/plone-product-developers">https://lists.plone.org/mailman/listinfo/plone-product-developers</a>
</pre>
</blockquote>
<br>
</body>
</html>