[Zope] Newbie dtml-var question (probably...)
Chris Withers
chrisw@nipltd.com
Tue, 15 Feb 2000 11:02:07 +0000
Hi,
I'd like to do something like:
<dtml-var /images/logo>
to include a logo and get the alt text from the object, etc, but it doesn't
work. Any ideas?
Also, and I've read a few threads about this but none really made sense to me, I
work on sites at home and at work, with varying base URLS.
1. At home, URLs are something like localhost:8080/project/index.html
2. At work, they are something like zope.nipltd.com/project/index.html
3. And finally, the sites are often also presented as something like
www.project.com.
The problem is how to phrase URLs in hrefs. <A HREF="/index.html"> does not work
for cases 1 and 2 as it goes to the root index.html on the server. however, it
is the only way I can think to do links that work for case 3.
This also applies to images if you reference them using <IMG> tags, which is how
I'm currently dealing with the first problem (not nice, 'cos you have to
maintain image size, alt text, etc by hand...)
Any help greatfully recieved...
Chris