[Zope] newbie Q

Phil Harris phil@philh.org
Tue, 21 Sep 1999 11:52:01 +0100


Looking at your example you should just be able to have an index_html in the
root with the contants as so:

<dtml-var main>

Then assuming your structure:
/
 LfolderA
 |    LfolderA.1
 |
 LfolderB
    .
    .
    and so on

the url http://localhost:8080/LfolderA/LfolderA.1/index_html

will render the 'main' method from the correct folder.

HTH

Phil
phil@philh.org


-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of kedai
Sent: Tuesday, September 21, 1999 10:37 PM
To: zope@zope.org
Subject: [Zope] newbie Q


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 ..?


_______________________________________________
Zope maillist  -  Zope@zope.org
http://www.zope.org/mailman/listinfo/zope

(To receive general Zope announcements, see:
http://www.zope.org/mailman/listinfo/zope-announce

For developer-specific issues, zope-dev@zope.org -
http://www.zope.org/mailman/listinfo/zope-dev )