[ZPT] Zope newbie question on accessing DTML Methods from ZPT
Dieter Maurer
dieter at handshake.de
Thu May 29 00:44:11 EDT 2003
Tom P. Allred wrote at 2003-5-28 11:31 -0400:
> ...
> I was halfway through TZB and happily using DTML Methods and Documents when
> I discovered TZB, 2nd Edition. It seems to promote all presentation through
> ZPT and all action through DTML methods and Python scripts with DTML
> Documents depreciated. Since I'm starting from scratch anyway, I want use
> current best practices and methods. Would someone provide feedback on
> current standards or point me to a resource?
ZPT for presentation and Python for logic.
> As to my specific ZPT - DTML Methods question:
> I created a test app using the navigation DTML Method (called as
> <p><dtml-var navigation></p>) from the Zope Zoo example in a DTML document
> to display subfolder links and titles. This works fine but when I try to
> call the DTML Method from a ZPT version of the same thing that uses macros
> I'm not clear on how to call and use the results from the navigation from
> within a fill-slot="body" code section. Could someone point me to a good
> resource for accessing DTML Methods from ZPT?
The Zope Book (2.6 edition).
It looks like
<XXX tal:content="structure here/DTMLMethod" />
Dieter
More information about the ZPT
mailing list