[ZPT] Zope newbie question on accessing DTML Methods from ZPT
Tom P. Allred
tom at allreddata.com
Wed May 28 13:46:47 EDT 2003
You are a good guesser! :) However, I still get a compilation error (METAL
attributes on <p> require explicit </p>, at line 1, column 1). Here is my
ZPT.
------------------------------------------------
<p metal:use-macro="container/macrosdoc.zpt/macros/page2">
<div metal:fill-slot="body">
Just something to print
<span tal:replace="here/navigation" />
</div>
</p>
-------------------------------------------------
If I replace div with span it will compile but when I Test it it displays
the html code for the subfolder listing but does not render it. The
navigation DTML Method is...
-------------------------------------------------
<dtml-if expr="_.len(PARENTS) > 2">
<a href="..">Return to Previous Screen</a><br>
</dtml-if>
<dtml-in expr="objectValues('Folder')">
<li><a href="&dtml-absolute_url;"><dtml-var title_or_id></a></li>
</dtml-in>
--------------------------------------------------
I appreciate your taking the time to help.
Thanks,
Tom P. Allred, MCSE, RHCE, CCNA
Allred Data Consulting, Inc.
704-633-0311 x826
www.AllredData.com
Tom at AllredData.com
-----Original Message-----
From: Troy Farrell [mailto:troy at entheossoft.com]
From what I understand, you are trying to call a DTML method named
'navigation' from somewhere in a PageTemplate.
HTH.
Troy
More information about the ZPT
mailing list