Help with creating a list of folders
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> Todd ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Todd Loomis Web Developer (SAIC) Defense Modeling & Simulation Office 1901 N. Beauregard Street, Suite 500 Alexandria, VA 22311 Office: 703.824.3407 Fax: 703.379.3778 tloomis@dmso.mil
At 14:15 20-08-2001 -0400, you 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>
Todd
Hello Todd, Don't know if it has anything to do with it but ... you are marking all the options as selected ??? I don't think that is valid html. Regards, Gitte Wange
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
participants (3)
-
Gitte Wange -
Jim Washington -
Todd Loomis