<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Till now I did everything with dtml, external
python scripts, python scripts and zclasses.</FONT></DIV>
<DIV><FONT face=Arial size=2>Gradualy I want to switch over to pagetemplates and
external python products.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The first thing I want to do is converting the dtml
to pagetemplates in the actual sites. These sites are based on a lot of
Zclasses.</FONT></DIV>
<DIV><FONT face=Arial size=2>For instance:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><dtml-with batest><BR> <dtml-var
index_html><BR></dtml-with></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Where batest is an instance of a basic element of
our content management system.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>After reading zpt docs (Zopebook and docs on
devshed), searching in the mailing list archives I came to the following
equivalent: </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> <tr><td tal:define="batest
here/batest"
tal:content="batest/index_html"></td></tr><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>This only works in the way that it can find the
index_html method (dtml) in the Zclass batest is an instance of. It won't render
(it won't find) the other dtml-methods or any other object in the Zclass wich
the index_html calls.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>So how do I do a 'dtml-with' in tal?</FONT></DIV>
<DIV><FONT face=Arial size=2>Somebody asked the same question a couple of months
ago but I couldn't find an answer in the mailing list
archives. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Henny van der Linde</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> </FONT></DIV></BODY></HTML>