[ZPT] URLs and stuff

Evan Simpson evan@digicool.com
Mon, 30 Apr 2001 10:09:20 -0500


From: "Chris Withers" <chrisw@nipltd.com>
> <a href="/mysite/docs/page1">Go here</a>
>
> ...where mysite if a folder off the root of the ZODB that's served out
as
> http://www.mysite.com
>
> Now, what I'd like to have the above mean is:
> "insert restrictedTraverse('/mysite/docs/page1').absolute_url()"

This could be <a tal:attributes="href
root/mysite/docs/page1/absolute_url">, but if you meant that
www.mysite.com is a different virtual host than the one making the
request, this may not work.

> How could I make it apply to all links (maybe fo a given class) in a
template?

That's not possible in ZPT yet.

Cheers,

Evan @ digicool