[Zope] Recursively show content of document in subfolders

Bakhtiar A Hamid kedai@kedai.com.my
Tue, 18 Feb 2003 17:17:03 +0800


On Wednesday 19 February 2003 05:18, Mico Siahaan wrote:
> Dear all,
>
> example I have a directory structure like this:
>
> zoo --
>
>      |-- birds
>      |
>      |-- mamals
>      |-- reptiles
>
> Each subfolder (birds, mamals, reptiles) has a DTML Method called
> 'description' which contains a short description of each group of
> animal.
>
> I want to make a DTML Method in zoo folder that show the description of
> each group of animal. How to do it in Zope?
>

untested:


#dtml method in zoo (zoo_method)
<dtml-var title>
<dtml-var description>

call it like so:
server.domain/zoo/birds/zoo_method
server.domain/zoo/reptiles/zoo_method

> Thanks.

--=20

=09http://www.kedai.com.my/             http://www.kedai.com.my/eZine
=09http://www.zope.org/Members/kedai    http://www.my-zope.org
=09How can I laugh tomorrow, if i can't even smile today.