[Zope] using a method as the img name

Florent Guillaume fg@nuxeo.com
2 Nov 2001 23:21:52 GMT


> I find the easiest way to do this is to use relative URLs on your Zope
> server, using <img src="images/header.gif"> instead of the absolute path.
> (This way you can reference it from almost anywhere in your site and let
> acquisition do the work for you).

But this plays hell with caching, as the user's browser will have to
request separately :

/site/images/header.gif
/site/images/folder1/header.gif
/site/images/folder2/header.gif
/site/images/folder2/sub1/header.gif
/site/images/folder3/header.gif
...

It's best to anchor all thoses images somewhere.

	-- Florent

-- 
Florent Guillaume, Nuxeo SARL (Paris, France)
+33 1 40 33 79 10  http://nuxeo.com  mailto:fg@nuxeo.com