At 01:14 30/05/99 , Graham Chiu wrote:
In article <613145F79272D211914B0020AFF6401915C4E5@gandalf.digicool.com> , Rob Page <rob.page@digicool.com> writes
Yes, Zope wants the image to be local. Of course, you could define a Property of the top-level folder called (for example) pDistantLogo and then use <IMG SRC="<!--#var pDistantLogo-->"> or something.
Looks like the image item has limited use, and it most cases it would be simpler to replace all with DTML documents instead. Then at least you can alter where the image location is rather than having to delete the image item, and redefine it.
The reason I'm going thru all these contortions is that my ISP doesn't support Zope, so I'm going to have to host it myself on a dial up line, and to maintain speed, I'm leaving all the images on my ISP hosted website.
Sorry, I misunderstood your question. Yes, the Image object is designed to contain local images, within your Zope installation.. If you have a load of images on a different server, you'd be better to use properties on the root Folder, like Rob said, or you could use a TinyTable (download from http://www.zope.org/Download/Contrib), and store a list of image names in that. You could for example use the following schema in a TinyTable called ExtImageList: name, html In it you have entries like: 'myimage', '<a href="http://disturl"><img src="http://disturl/myimage.gif" width=100 height=100 border=0></a>' Now you could use code like: <!--#in "ExtImageList('myimage')--><!--#var html--><!--#/in--> You could also factor the previous line out to a DTMLMethod which you then call from all your documents you want to have an image. In the fututre you could use ZClasses for this type of work as well. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------