[Zope] "Fake" folder hiearchy
Chris Withers
chris at simplistix.co.uk
Tue Feb 8 05:42:25 EST 2005
michal wrote:
>> 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
jcc wrote:
> Certainly. Look for traversal_subpath (Python scripts), simple result
> traversal/pluggable brains (ZSQL methods), and __bobo_traverse__
> (Products).
traverse_subpath is also available in ZPT, and ot cover michal's
example, I'd have a page template called 'books' starting with something
like:
<html tal:define="book_id python:traverse_subpath and
traverse_subpath[0] or None">
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
More information about the Zope
mailing list