Try changing /index_html as follows: <dtml-var standard_html_header> <table> <tr><td><dtml-var "PARENTS[0].text_object_1" fmt=structured-text> </td></tr> <tr><td><dtml-var "PARENTS[0].text_object_2" fmt=structured-text> </td></tr> </table> <dtml-var standard_html_footer> Basically force Zope to look in the current folder first. -- Patrick Lewis <pl@teleport.com> On Thu, Jun 22, 2000 at 11:03:37PM +0800, zoper@creative.isquare-asia.com wrote:
Hi All,
Here's the situation
I have a tree such that
/index_html /text_object_1 /text_object_2 /subfolder/text_object_1 /subfolder/text_object_2
where content is:
/index_html
<dtml-var standard_html_header> <table> <tr><td><dtml-var text_object_1 fmt=structured-text></td></tr> <tr><td><dtml-var text_object_2 fmt=structured-text></td></tr> </table> <dtml-var standard_html_footer>
/text_object_1
Just some text of text_object_1
/text_object_2
Just some text of text_object_1
/subfolder/text_object_1
Just some text which is different from /text_object_1
/subfolder/text_object_2
Just some text which is different from /text_object_2
The effect I would like to achieve is: when user access http://myserver/, content of /text_object_1 and /text_object_2 will be shown while user access http://myserver/subfolder/, content of /subfolder/text_object_1 and /subfolder/text_object_2
The point is that there's no index_html in /subfolder so /index_html will be acquested and by default it displays content of /text_object_1 and /text_object_2
The question is: we got text_object_1 and text_object_2 in /subfolder how could I let the acquested index_html in subfolder to use the objects inside the subfolder?
If my desired effect could be achieved, that would be very useful as the whole site could use a master template at root, changing objects inside folder could show different content. While changing the root index_html will change the layout of the whole site
Otherwise we have to put the same "index_html" inside every folder so that default view of folders will show their containing object content.
If this is not easy, is there any other way to achieve the same effect? I don't want to use something like "http://myserver/?c=some_parameters" which is my current implementation (where site structured is not preserved or shown by URL)
Thanks,
Roger
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )