[Zope-dev] Forcing Zope to render a URL
Martijn Pieters
mj@antraciet.nl
Tue, 11 May 1999 12:54:29 +0200
At 19:06 10/05/99 , Jason Spisak wrote:
>Is there a way to have Zope render, as part of a DTML method, a specific
>URL in order to take advantage of direct traversal. For example, I
>tried this DTML code:
>
><!--#var "URL4 + '/Templates/' + _.str(_['template'])"-->
>
>This gives me the perfect URL, but in text format. Does anyone know of
>a way to make #var render that URL?
>
>All the best,
>
>--
>Jason Spisak
>webmaster@mtear.com
You mean something like:
<!--#with Templates-->
<!--#var "_.getitem('template', 1)"-->
<!--#/with-->
or do you mean:
<!--#with Templates-->
<!--#var "_.getitem(_[template], 1)"-->
<!--#/with-->
The first being: Render the object named ´template´ within the object
´Templates´.
and the second: Render the object named by the variable ´template´ within
the object ´Templates´.
--
Martijn Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| Tel: +31-35-6254545 Fax: +31-35-6254555
| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
------------------------------------------