[Zope] Sharing images between different sites

Tino Wildenhain tino at wildenhain.de
Wed Nov 17 17:16:14 EST 2004


Hi,

Am Mittwoch, den 17.11.2004, 20:52 +0000 schrieb John Poltorak:
> Is there any way to set up an images folder which can be shared between 
> several sites under one zope instance?
> 
> If so how would I reference them if they were all in the /images folder?

Of course. And you reference them by context.images.whateverimage
or in HTML: <img src="/images/whateverimage">

You should always specify a path starting with / in Zope links.
it does not matter if the site is somewhere down the path,
aquision solves it (as long as there is no other images object
in the path to root)

You can share such a folder between many zope instances if 
you use ZEO and mount points. See zope.conf at the end.

Regards
Tino



More information about the Zope mailing list