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 ..?
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 )
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 ------------------------------------------
On Tue, Sep 21, 1999 at 01:14:49PM +0200, Martijn Pieters wrote:
At 23:36 21/09/99 , kedai wrote: <snipped problem with aquisition resolution in index_html>
Make sure that index_html is a DTML Method, not a DTML Document.
Martijn - Isn't this a possible solution to your problem with standard_header and standard_footer? Couldn't you make them nothing but: <dtml-var header> And have header and footer be overridden, via the sibling aquisition path? Ross -- Ross J. Reedstrom, Ph.D., <reedstrm@rice.edu> NSBRI Research Scientist/Programmer Computer and Information Technology Institute Rice University, 6100 S. Main St., Houston, TX 77005
Make sure that index_html is a DTML Method, not a DTML Document.
--
as sure as i was, it never occurred to me to try and change the type. it is a DTML Document, and changing to Method, it works like a charm! thanks a lot. p/s - i was a bit reluctant to throw such simple problem for fear of retribution :). however, i am *glad* that the zope community do take care of the little and new guys like me. cheers!
participants (4)
-
kedai -
Martijn Pieters -
Phil Harris -
Ross J. Reedstrom