[Zope] Setting background image!!

Martijn Pieters mj@antraciet.nl
Fri, 05 Nov 1999 20:47:48 +0100


At 20:33 5-11-99 , Joshi, Sunit wrote:

>         Could someone please tell me how to upload a background image using
>DTML. I tried the following
>         <body bgcolor="#FFFFFF" background=<dtml-var bgImage> >
>         but it does not work. Any other image works fine though

The background parameter needs a URL, not an IMG tag as is normally generated:

   background="<dtml-var "bgImage.absolute_url()"

or, in the upcoming version 2.1.0:

   background="&dtml.url-bgImage;"

--
Martijn Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| T: +31 35 7502100 F: +31 35 7502111
| mj@antraciet.nl http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
---------------------------------------------