Hi; I know one cannot nest DTML objects, but the below lets you know what I'm trying to accomplish. What is the correct syntax? <dtml-let folder="<dtml-var id>"> TIA, beno
beno wrote:
Hi; I know one cannot nest DTML objects, but the below lets you know what I'm trying to accomplish. What is the correct syntax?
<dtml-let folder="<dtml-var id>">
If you want to get the id of an object, you should use getId(): <dtml-let folder="getId()"> ... </dtml-let> -mj
beno wrote at 2003-1-14 05:54 -0400:
I know one cannot nest DTML objects, but the below lets you know what I'm trying to accomplish. What is the correct syntax?
<dtml-let folder="<dtml-var id>"> You want background reading.... Did you already read the Zope Book?
You may also have a look at <http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html> Search for "computed variable access" and read the "Name lookup" section. Almost surely, you want <dtml-let folder="_.getitem(id)"> Dieter
participants (3)
-
beno -
Dieter Maurer -
Maik Jablonski