[Zope] Links to Images and Other Pages
Kevin Sullivan
ksull@economics.mit.edu
Wed, 14 Aug 2002 15:08:48 -0400
Well, the image is one problem and the faculty link is another, sorry
for the confusion.
I have my images in an "image" dir which makes acquisition difficulty.
Faculty is a second level folder in my site. I believe the
absolute_url() idea will work for those folders though.
Thanks
-----Original Message-----
From: Eric Walstad [mailto:eric@walstads.net]
Sent: Wednesday, August 14, 2002 3:00 PM
To: zope@zope.org
Cc: Kevin Sullivan
Subject: Re: [Zope] Links to Images and Other Pages
Hi Kevin,
Have a look at absolute_url() in the docs.
Assuming "faculty" is your image, something like:
<dtml-var "faculty.absolute_url()"> or
<img tal:attributes="src context/faculty/absolute_url">
might do the trick.
Best,
Eric.
Kevin Sullivan wrote:
> Hi,
>
> A general zope question: Whats the best way to refer to images
> and other links within a zope site? I am now using apache proxy in
front
> of ZServer. Basically im trying to avoid
> Links like "/intranet/faculty/faculty/faculty"
>
> Thanks in advance,
> Kevin