On 8 dec. 2013, at 13:37, Torsten Kühnel <[email protected]> wrote:
>
> Am Fri, 06 Dec 2013 12:29:53 +0100 schrieb Guido Stevens:
>
>> ...
>> You could move that decision into the viewlet's python code. Make the
>> .render() call return either the original discussion template via
>> super(...).render() or return your custom stuff via
>> ViewPageTemplate('your template'). That way you only need your custom
>> template code.
> great, that solved the problem ! But i have another one: My custom form
> gets used for discussion style comments, too. Currently looking into the
> source to find out how to solve this one.
Make sure to use different button ids and form ids for your custom stuff. And
then adjust your decorators to bind the button handlers to those custom ids.
--
Guido Stevens | +31.43.3618933 | http://cosent.nl
s o c i a l k n o w l e d g e t e c h n o l o g y
_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-product-developers