At 10:42 19/08/99 , Andreas Kostyrka wrote:
On Thu, 19 Aug 1999, Arnaud Lecat wrote:
Hi
I've made an "images" directory like this
/ |_ images |_ news |_ etc.... Just write <dtml-var imagename> or <dtml-var "imagename.tag(border=0,alt='TEST ALT text')">
That wasn't the question, Andreas.=) What he wants is this: <dtml-with images><dtml-var imagename></dtml-with> which will get him the object named imagename from the folder named images. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-7502100 Fax: +31-35-7502111 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
Hmmm, ok. But imagine that I need to change the name of the directory "images" one of these days... I'll check out every method, document ,etc... for changing names. Perhaps there's a more dynamically method for doing that... no ? Martijn Pieters wrote:
At 10:42 19/08/99 , Andreas Kostyrka wrote:
On Thu, 19 Aug 1999, Arnaud Lecat wrote:
Hi
I've made an "images" directory like this
/ |_ images |_ news |_ etc.... Just write <dtml-var imagename> or <dtml-var "imagename.tag(border=0,alt='TEST ALT text')">
That wasn't the question, Andreas.=)
What he wants is this:
<dtml-with images><dtml-var imagename></dtml-with>
which will get him the object named imagename from the folder named images.
-- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-7502100 Fax: +31-35-7502111 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
-- >> WinErr: 080 Clavier introuvable - Veuillez appuyer sur n'importe quelle touche pour continuer. << Arnaud LECAT >> Email: lecat@hexanet.fr >> WWW page:www.hexanet.fr/~lecat HEXANET >> http://www.hexanet.fr Z.A. Farman sud - 9 rue Roland Coffignot BP 415 - 51689 Reims Cedex 2 - France phone: (33) 03 26 79 30 05 Fax: (33) 03 26 79 30 06
Or even <img src="images/imgname" border=0 alt="blah"> ----- Original Message ----- From: Martijn Pieters <mj@antraciet.nl> To: Andreas Kostyrka <andreas@mtg.co.at>; Arnaud Lecat <lecat@hexanet.fr> Cc: ZOPE <zope@zope.org> Sent: Thursday, August 19, 1999 10:52 AM Subject: Re: [Zope] Simple question
At 10:42 19/08/99 , Andreas Kostyrka wrote:
On Thu, 19 Aug 1999, Arnaud Lecat wrote:
Hi
I've made an "images" directory like this
/ |_ images |_ news |_ etc.... Just write <dtml-var imagename> or <dtml-var "imagename.tag(border=0,alt='TEST ALT text')">
That wasn't the question, Andreas.=)
What he wants is this:
<dtml-with images><dtml-var imagename></dtml-with>
which will get him the object named imagename from the folder named images.
-- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-7502100 Fax: +31-35-7502111 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(To receive general Zope announcements, see: http://www.zope.org/mailman/listinfo/zope-announce
For developer-specific issues, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
On Thu, 19 Aug 1999, Phil Harris wrote:
Or even
<img src="images/imgname" border=0 alt="blah"> Well this isn't that good, because: /index_html <img src="images/imgname"> --> /images/imgname /test/index_html <img src="images/imgname"> --> /test/images/imgname
Basically, by supplying a relative path, you force the browser to load the file more often than needed. <dtml-var image> and <dtml-var "image.tag()"> supply always the correct real URL. Andreas -- Andreas Kostyrka | andreas@mtg.co.at phone: +43/1/7070750 | phone: +43/676/4091256 MTG Handelsges.m.b.H. | fax: +43/1/7065299 Raiffeisenstr. 16/9 | 2320 Zwoelfaxing AUSTRIA
participants (4)
-
Andreas Kostyrka -
Arnaud Lecat -
Martijn Pieters -
Phil Harris