Viewing objects in sub-folders
Hi all, I am new to Zope. I have been working with it for my company and getting a web site together. So far I'm liking it more than I thought. I have started getting into using dtml and have hit a wall. Let me describe. I have a folder that has 3 sub folders. I created 3 zclasses/products. Users add new objects into these 3 folders, the objects being one of the 3 products created. Now I have a dtml method that will list the objects in the folder with the properties that were set. I can go to any of the 3 folders and view the dtml method to see the objects there. But what I need is this. I have an index_html in the main folder containing these 3 folders. This index_html needs to use the dtml method for displaying from each folder. So on the index_html the objects and properties from all 3 sub folders would be displayed in a columnar format. What do I use/do on the index_html to use or display the objects in a sub-folder? Make sense? I hope so. I would appreciate any help or guidance to get going on this. Stephen ___________________ Stephen Schneider Mind Architecture "It's an Internet Thing..." www.mindarch.com stephen@mindarch.com (330) 329 - 8748 (617) 507 - 0504 fax AOL IM - mindarch
Stephen Schneider writes:
... I have a folder that has 3 sub folders.... Now I have a dtml method that will list the objects in the folder with the properties that were set. I can go to any of the 3 folders and view the dtml method to see the objects there. But what I need is this. I have an index_html in the main folder containing these 3 folders. This index_html needs to use the dtml method for displaying from each folder. So on the index_html the objects and properties from all 3 sub folders would be displayed in a columnar format. What do I use/do on the index_html to use or display the objects in a sub-folder?
Make sense? I hope so. I would appreciate any help or guidance to get going on this. I had a bit of pain to understand you but I think I succeeded:
"index_html" ... <dtml-let standard_html_header="''" standard_html_foolter="''"> <dtml-with folder1> <dtml-var your_method> </dtml-with> <dtml-with folder2> <dtml-var your_method> </dtml-with> .... </dtml-let> .... or alternatively: "index_html" ... <dtml-let standard_html_header="''" standard_html_foolter="''"> <dtml-var expr="your_method(folder1,_)"> <dtml-var expr="your_method(folder2,_)"> .... </dtml-let> .... Dieter
participants (2)
-
Dieter Maurer -
Stephen Schneider