[Zope] "Fake" folder hiearchy

J Cameron Cooper zope-l at jcameroncooper.com
Mon Feb 7 16:12:49 EST 2005


michal wrote:
> Hello,
> I have this site hiearchy, make it by Folders:
> 
>   - product
>       - books
>       - tapes
> 
> Now, if somebody write to URL address like:
> 
>   http://mysite.com/product/books
> 
> I get a template page from that folder. It's OK.
> 
> 
> But what I need is some dynamical handling of URL. I would
> like be able to handle URLs like:
> 
>   http://mysite.com/product/books/tarzan
> 
> where tarzan is some key word for, which I get, dynamical 
> query database (for example) and dynamical render page
> about Tarzan book. 
> I dont want make folder hiearchy under "books" folder,
> because I have all books data in database...
> 
> Is it possible do something like this?

Certainly. Look for traversal_subpath (Python scripts), simple result 
traversal/pluggable brains (ZSQL methods), and __bobo_traverse__ (Products).

One link I found quickly:

http://zope.org/Members/teyc/Wiki/BoboTraverse

		--jcc


More information about the Zope mailing list