Zope version of virtual hosts/includes?
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
zope@zope.org wrote:
Is there a straightforward way to accomplish this in Zope?
When people ask "I'm using technique X with product A, how do I do this with product B?" I always get itchy. *Why* would you want to present the same information with public and private headers? Maybe there's a completely different and vastly superior way to do what you want to accomplish with Zope (there usually is ;-)). -- Cees de Groot http://www.cdegroot.com <cg@cdegroot.com>
participants (2)
-
Cees de Groot -
Hunter Kelly