Try: <p tal:options="here/id"></p> Options is the namespace where all the arguments, with which the template is called is stored. Look at the full traceback of a ZPT error message. In there, the different namespaces are written. See options then. For more DTML -> ZPT http://www.zope.org/Members/peterbe/DTML2ZPT There is a ZPT mailing list at zpt@zope.org ----- Original Message ----- From: "Paul Winkler" <slinkp23@yahoo.com> To: "Zope mailing list" <zope@zope.org> Sent: Sunday, July 15, 2001 2:36 AM Subject: [Zope] ZPT equivalent of <dtml-var id>
I'm sure this is obvious, but I'm not finding it...
in dtml I can get the ID of the current page as a string by doing <dtml-var id>
How do I get the same thing in ZPT? I've tried the following:
<p tal:content="id"></p> <p tal:content="here/id"></p> <p tal:content="container/id"></p> <p tal:content="request/id"></p>
None of those exist... What am I overlooking? -- ................... paul winkler .................... custom calendars & printing: http://www.calendargalaxy.com A member of ARMS: http://www.reacharms.com home page: http://www.slinkp.com
_______________________________________________ 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 )