[ZPT] URLs and stuff
Chris Withers
chrisw@nipltd.com
Mon, 30 Apr 2001 09:22:41 +0100
Hi,
This is a problem which I hope ZPT can solve.
We have content authors who put links in sites using tools like dreamweaver.
So, we have, for example:
<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()"
What ZPT magic would I use to get that effect?
How could I make it apply to all links (maybe fo a given class) in a template?
cheers,
Chris