[Zope] using a method as the img name
marc lindahl
marc@bowery.com
Fri, 02 Nov 2001 18:54:28 -0500
Hmmm... when I do this, the URL shows up as absolute in the bottom of the
browser - don't they 'convert' them before referencing?
> From: Florent Guillaume <fg@nuxeo.com>
> Organization: Nuxeo
> Newsgroups: local.lists.zope.zope
> Date: 2 Nov 2001 23:21:52 GMT
> To: zope@zope.org
> Subject: Re: [Zope] using a method as the img name
>
>> 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
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )