I have two DTML methods and I want to do sth like this: <dtml-call "manage_edit(data=result_of_other_DMLTmethod, title='myTitle')"> But how can I force that the rendered result is inserted and not the document source. Best regards Arno
Arno Gross wrote:
I have two DTML methods and I want to do sth like this:
<dtml-call "manage_edit(data=result_of_other_DMLTmethod, title='myTitle')">
But how can I force that the rendered result is inserted and not the document source. Best regards Arno
<dtml-call "manage_edit(data=other_DMLTmethod(_.None,_), title='myTitle')"> hth, -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------>
Arno Gross writes:
I have two DTML methods and I want to do sth like this:
<dtml-call "manage_edit(data=result_of_other_DMLTmethod, title='myTitle')">
But how can I force that the rendered result is inserted and not the document source. An FAQ...
Rendering a DTML object means calling it. The easiest way: <dtml-let result=result_of_method <!-- renders --> <dtml-call "manage_edit(data=result, title='myTitle')"> </dtml-let> a more complex alternative: <dtm-call "manage_edit(data=result_of_method(_.None,_), title='myTitle')"> More info URL:http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html Dieter
participants (3)
-
Arno Gross -
Casey Duncan -
Dieter Maurer