[Zope] Help with creating a list of folders

Jim Washington jwashin@vt.edu
Mon, 20 Aug 2001 14:46:49 -0400


Todd Loomis wrote:
> I'm trying to create a list of folders which to put into a form 
> drop-down box. The folders to be shown are only the ones they has access 
> to. I tried this and nothing happens:
> 
> <select name="folder">
>     <option value="" selected>Select Folder</option>
>     <dtml-in  expr="objectValues('Folders')">
>         <option value="<dtml-var id>" selected><dtml-var title></option>
>     </dtml-in>
> </select>

Try this:

      <dtml-in  expr="objectValues('Folder')">

'Folders' is not the meta-type for Folder.  Meta-types are case 
sensitive *and* spelling-sensitive.

also, use "getId()" in preference to id.  You will be glad in the 
future, though it probably will work here.

 From there, you should be able to figure out the rest.

-- Jim Washington