I have done as you say and get this error:
KeyError: '$var'
Here are the code lines I added into the table:
<td><tal:content metal:use-macro="here/$var/macros/author">author</tal:content></td>
<td><tal:content metal:use-macro="here/$var/macros/content">content</tal:content></td>

Dieter Maurer <[EMAIL PROTECTED]> wrote:
beno - wrote at 2006-7-26 15:04 -0700:
> ...
> that works fine. But I'd like to call the following in that table:
> where "XXX" is the "item" that changes each time a new item from the batch is called.

You might try something like "here/?var/...".

"?var" reads the contents of the variable "var" and inserts this content
into the path _expression_.

Note that the value must be a string and that embedded '/' are *not*
treated as path separators.


Do you Yahoo!?
Next-gen email? Have it all with the all-new Yahoo! Mail Beta.
Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to