[Zope] Wrong usage of 'dtml-with' ?
Evan Simpson
evan@4-am.com
Sun, 22 Aug 1999 13:44:01 -0500
Luc Stepniewski wrote:
> In index_html, I put the following:
> ----------------
> <dtml-var standard_html_header>
> <dtml-if foldername>
> <dtml-with foldername>
> <dtml-in "objectValues()">
> <dtml-var id><br>
> </dtml-in>
> </dtml-with>
> </dtml-if>
> <dtml-var standard_html_footer>
> ----------------
You need to replace <dtml-with foldername>, which does nothing useful. Instead
use <dtml-with "_[foldername]">, which looks for an object with id equal to the
string contained in property 'foldername'.
It would be reasonable, IHMO, to alter the dtml-with tag to have the behavior
which you expected, but I haven't though terribly hard about possible drawbacks.