[Zope] newbie Q

Martijn Pieters mj@antraciet.nl
Tue, 21 Sep 1999 13:14:49 +0200


At 23:36 21/09/99 , kedai wrote:
>hi,
>sorry to burden you guys with such simple problem.  but the answer eludes 
>me.
>
>Problem:
>i have folders contained in root like so
>
>  /
>  LfolderA
>  |    LfolderA.1
>  |
>  LfolderB
>     .
>     .
>     and so on
>
>each folder ha s a dtml method main.  there's only one index_html 
>method  - which is in root dir - calling method main.
>if i call <dtml-var main>, the dtml method from root will always be returned.
>
>Q:
>How can i get main from any folders returned to index_html?  tried using 
><dtml-in X >, <dtml-var X> and <dtml-with X>  but i am not sure what X 
>should be.
>
>roughly what i did in index_html in root folder:
>
>------------------------
><dtml-in X>
><dtml-with Y>
><dtml-var Z>
></dtml-with>
></dtml-in>
>
>where X,Y,Z are combinations of the following:
>objectValues, objectItems, PARENTS[0].main but to no avail
>
>help ..?

Make sure that index_html is a DTML Method, not a DTML Document.

--
Martijn Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| Tel: +31-35-7502100 Fax: +31-35-7502111
| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
------------------------------------------