<!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>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;dtml-with batest&gt;<BR>&nbsp;&lt;dtml-var 
index_html&gt;<BR>&lt;/dtml-with&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>After reading zpt docs (Zopebook and docs on 
devshed),&nbsp;searching in the mailing list archives I came to the following 
equivalent:&nbsp;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&lt;tr&gt;&lt;td tal:define="batest 
here/batest" 
tal:content="batest/index_html"&gt;&lt;/td&gt;&lt;/tr&gt;<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>&nbsp;</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.&nbsp;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Henny van der Linde</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;</DIV></FONT>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;</FONT></DIV></BODY></HTML>