[Zope] [Q]: Absolute URL in tree tag

Martijn Pieters mj@atmm.nl
Tue, 23 Feb 1999 10:30:45 +0100


At 21:32 22/02/99 , Michael Bernstein wrote:
>Sorry for the newbie question, but how do you get the links in a tree to
>use absolute URL's?
>
>Here is the simplified code:
>
><!--#tree -->
><A HREF="<!--#var tree-item-url-->"><!--#var id--></A>
><!--#/tree-->
>
>tree-item-url returns a relative URL. how do you get this to use an
>absolute one?


By adding <!--#var URL1-->/ to the HREF tag, like so:
<!--#tree -->
<A HREF="<!--#var URL1-->/<!--#var tree-item-url-->"><!--#var id--></A>
<!--#/tree-->


--
M.J. Pieters, Web Developer
| ATMM http://www.atmm.nl
| Tel: +31-35-6254545 Fax: +31-35-6254555
| mailto:mj@atmm.nl http://www.atmm.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
------------------------------------------