[ZPT] Zope newbie question on accessing DTML Methods from ZPT

Tom P. Allred tom at allreddata.com
Wed May 28 14:35:25 EDT 2003


You are The Man!  This does exactly what I want and provides guidance for
future use.

Now if someone could just tell me why every time I send a post to
zpt at zope.org it shows up twice I'll be quiet for awhile. :o)

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: Evan Simpson [mailto:evan at 4-am.com]
Sent: Wednesday, May 28, 2003 12:55 PM
To: tom at allreddata.com
Cc: zpt at zope.org
Subject: Re: [ZPT] Zope newbie question on accessing DTML Methods from
ZPT


Tom P. Allred wrote:
> 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.

<div> implicitly closes <p>, so stick with <span>.   Your final problem
can be solved thusly:

<p metal:use-macro="container/macrosdoc.zpt/macros/page2">
    <span metal:fill-slot="body">
       Just something to print
       <span tal:replace="structure here/navigation"></span>
    </span>
</p>

...since you want to preserve the HTML structure, not escape it.

Cheers,

Evan @ 4-am





More information about the ZPT mailing list