objectValues not working below root
Greetings, all. I'm a newcomer to Zope, having just installed 2.6.0 on Linux, and working through several of the examples. I do have years of experience on other platforms, however. I am attempting to put together a rather quick and simple document repository for my development team. Here's my issue, forgive me, I suspect it's a newbie one, but I could not find an answer after 25 minutes of searching. I've created a test folder below the root, and within it placed two more folders. I'm simply trying to get the subfolders to display in my index_html document in my first test root folder. I'm using: < ul> < dtml-in expr="objectValues('Folder')"> < li>< dtml-var title_or_id> < /dtml-in> < /ul> ...and getting nothing but empty ul tags. If I try this at the absolute root, it works. In any sub folder, it does not. I've created no acl_users below root, and I'm working as Admin, so I don't think this is a privileges problem. This has got to be something simple that I'm just not seeing. Any help is appreciated. Martin __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com
Make sure you're making an index_html DTML Method, not a DTML Document. A Document will try to list all the Folder names inside the document object, which of course doesn't have any folder objects inside it. A method will list the folder objects inside its parents. (The index at the absolute root has to be a method, which is why it probably works). If anyone knows a good source to explain this particular bit of Zen, let me know--I figure my explanation isn't exactly eloquent, but I'm from the hills of South Carolina and thus have an excuse. --Chris On Saturday, December 28, 2002, at 10:21 PM, huzza boo wrote:
< ul> < dtml-in expr="objectValues('Folder')"> < li>< dtml-var title_or_id> < /dtml-in> < /ul>
participants (2)
-
Chris Muldrow -
huzza boo