Some questions for experienced zopers
Try this: <IMG SRC = images/img1> Liz Pelletier *********************************************************** 2. I would like to aggregate my images into a common folder off the zope root, something like this: (indenting to show directory structure) / Mysite [_] control_panel [_] acl_users [_] images * img1 * img2 * img3 % index_html % standard_error_message % standard_html_header % standard_html_footer and then call them as <dtml-var images/img1> in index_html. Even though the documentation suggests that this is possible, doing so always returns an error for me.
Liz writes:
Try this: <IMG SRC = images/img1>
Refinement: Define a variable in the root, called imageroot or whatever and set it to the path of the images folder, e.g. /images. It gives: <IMG SRC = <dtml-var imageroot>/img1> Then you move all images and just alter the root variable to reflect the new location. -- Best regards / mvh., Steen Suder sysadm kollegie6400.dk OpenSource - Sign of the time
Hi Liz, Try <dtml-var "images.img1"> Phil phil@WigWamWeb.net -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Liz Sent: Tuesday, October 19, 1999 10:08 AM To: zope@zope.org Subject: [Zope] Some questions for experienced zopers Try this: <IMG SRC = images/img1> Liz Pelletier *********************************************************** 2. I would like to aggregate my images into a common folder off the zope root, something like this: (indenting to show directory structure) / Mysite [_] control_panel [_] acl_users [_] images * img1 * img2 * img3 % index_html % standard_error_message % standard_html_header % standard_html_footer and then call them as <dtml-var images/img1> in index_html. Even though the documentation suggests that this is possible, doing so always returns an error for me. _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope (Related lists - please, no cross posts or HTML encoding! 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 )
At 11:41 19/10/99 , Phil Harris wrote:
Hi Liz,
Try <dtml-var "images.img1">
Won't work. See an earlier email from me today. What will work: <dtml-with images><dtml-var img1></dtml-with> <dtml-var "_.str('images.img1')"> <dtml-var "images.img1.tag()"> -- 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 ------------------------------------------
Hmm, Works for me Site structure /images advert_gif /test tt5 contents of tt5 <dtml-var standard_html_header> <dtml-var "images.advert_gif"> <dtml-var standard_html_footer> Displays the image as expected. Hmm Phil phil@wigwamweb.net -----Original Message----- From: Martijn Pieters [mailto:mj@antraciet.nl] Sent: Tuesday, October 19, 1999 11:15 AM To: Phil Harris; Liz; zope@zope.org Subject: RE: [Zope] Some questions for experienced zopers At 11:41 19/10/99 , Phil Harris wrote:
Hi Liz,
Try <dtml-var "images.img1">
Won't work. See an earlier email from me today. What will work: <dtml-with images><dtml-var img1></dtml-with> <dtml-var "_.str('images.img1')"> <dtml-var "images.img1.tag()"> -- 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 ------------------------------------------
At 12:30 19/10/99 , Phil Harris wrote:
Hmm,
Works for me
Site structure
/images advert_gif /test tt5
contents of tt5
<dtml-var standard_html_header> <dtml-var "images.advert_gif"> <dtml-var standard_html_footer>
Oops. Of course. In this case, images.advert_gif == _.str(images.advert_gif) -- 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 ------------------------------------------
Hi Liz,
Try <dtml-var "images.img1">
Won't work. See an earlier email from me today.
What will work: <dtml-with images><dtml-var img1></dtml-with> <dtml-var "_.str('images.img1')"> <dtml-var "images.img1.tag()">
But it works for me (so now I'm confused). Could it be that if it works the object being called has a __repr__ method (or something)? Regards, Johan
participants (5)
-
Johan Carlsson -
Liz -
Martijn Pieters -
Phil Harris -
Steen Suder