[Zope] DTML conversion to TAL

Dieter Maurer dieter at handshake.de
Wed Nov 26 15:18:11 EST 2003


Kevin Rosso wrote at 2003-11-26 08:50 -0800:
 > ...
 > For example, the variable string we create in the "properties" tab in 
 > the ZMI may have a value of:
 > /devsiteFolder/images/ and be called, "imageDir". This variable is then 
 > used to call an image throughout the site using <img src="/<dtml-var 
 > imageDir>/imageName.gif">

This would become
'<img tal:attributes="src string:${imageDir}/imageName.gif">'.

 > ...
 > I have read and re-read the current documentation and articles relating 
 > to "DTMLers learning TAL" and I must say the syntax is what has me most 
 > confused. A simple chart with sample TALES and its common functions 
 > would be a great help.

A think, there are HowTos and recipies (--> zopelab) for that.

For me, careful reading of the TAL and TALES specs has been enough.

The Zope Book has a section on PageTemplates. PageTemplates
come with examples (--> "examples" subfolder of "Products/PageTemplates).


If necessary, come with more specific questions.

-- 
Dieter



More information about the Zope mailing list