Thanks, Robert. But that produces a runtime Zope error: Error Type: Undefined Error Value: "absolute_url" not found in "item/absolute_url" For completeness, here's the entire relevant snippet: <tbody tal:repeat="item here/ListAllArticlesDict"> <tr> <td> <a tal:attributes="href item/absolute_url" tal:content="item/title"></a></td> <td tal:content="item/Summary">Summary</td> </tr> </tbody> We know that the first line produces the items because if I don't try to do the URL, the table displays as expected. At 11:45 PM 6/6/2002 +0200, Robert Rottermann wrote:
In this case you must use tal:attributes <a tal:attributes="href item/absolute_url" tal:content="item/title"></a> Robert ----- Original Message ----- From: "Dan Shafer" <pydan@danshafer.com> To: <zope@zope.org> Sent: Thursday, June 06, 2002 9:48 PM Subject: [Zope] Embedding absolute_url in TAL Syntax
OK, now that I have my table of objects produced by a Python script working in ZPT, I need to figure out how to connect an entry in the table to its URL. What is the TAL equivalent of:
<td><a href="<dtml-var absolute_url>"><dtml-var title></a></td>
It *seemed* like I should be able to code:
<td><a href="tal:content='item/absolute_url'"><tal:content="item/title"></a></td>
But that creates a compilation error in the TAL HTML Parser. Maybe it's a quoting thing (which I had sort of hoped would be cleaner in ZPT than it is with DTML stuff) but I can't find anything in the docs about using absolute_url in TAL, so I'm kinda stuck.
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )