[Zope] Zope version of virtual hosts/includes?

Hunter Kelly retnuh@oniva.com
Tue, 17 Aug 1999 17:43:17 +0100


Hello, there!  We have a bunch of sites that we maintain using various
methods, but are looking for a better solution than the ad-hoc things that
seem to get thrown together, so I thought I'd take a look at Zope, since
I'm a big Python fan.

One of the techniques we use is to use virtual hosts to change header/footer
information for documents.

For example, if you visited http://public/ you'd get a view of the data with
the public headers/menus/etc, and http://private/ would give a view with the
private
headers/menus/images/etc.  The actual content of the page is the same,
however.

This is accomplished using inculdes, like #INCLUDE FILE="/x/TopHTML.inc"
Then, the /x directory is mapped to different directories, depending
on the virtual host that was used...

Is there a straightforward way to accomplish this in Zope?  Seems like
Acquisition
would have some way of doing it, but a quick look through some of the FAQs
didn't seem
to address this issue.

Would the best way to be to set up some kind of content folder that isn't
directly visible,
and then public/private folders that acquire the content itself from a
toplevel folder?
Or is there another way entirely?

Thanks for any help,

Hunter