13 Jan
2003
13 Jan
'03
11:20 a.m.
Arjan Huijzer schrieb:
Hello,
This is my first posting on this list, so I don't know whether this question has been posted before.
I am trying to access SQL Methods from a folder that is not a parent, but a sibling:
/mywebsite /sql_quesries query1 query2 /html index_html welcome.html
Is it possible to use the "query1" and "query2" methods from the DTML methods located in the "html" folder?
Yes, that's what Acquisition is for (please read about that in the ZopeBook). You can involve the queries by e. g. <dtml-in expr="sql_queries.query1(parameter=value)"> ... </dtml-in> from within your index_html or even a deeper hierarchy. Martin