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>
<td><tal:content metal:use-macro="here/$var/macros/content">content</tal:content></td>
TIA,
Ben
Dieter Maurer <[EMAIL PROTECTED]> wrote:
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.
--
Dieter
Do you Yahoo!?
Next-gen email? Have it all with the all-new Yahoo! Mail Beta.
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )