[Zope] DTML Doc property from DTML Method in tag

Brian Lloyd Brian@digicool.com
Mon, 15 Feb 1999 14:37:22 -0500


> this is my structure:
> 
> Folder 'HERE' has Folders within it.
> Assume that they have ids ID1, ID2, ID3, etc.
> Each of these Folders has a property 'common_name'
> 
> Thus, in HERE/ID1 can reference <!--#var common_name--> and 
> get 'Name 1'.
> 
> In HERE, I execute a form. The checkboxes build a list ids 
> ['ID1', 'ID2'].
> Processing the form,
> <!--#var ids--> gives me the list.
> <!--#in ids--><!--#var sequence-item--><!--#/in--> gives 'ID1' on the
> first iteration. But I want to get 'Name 1'

Try this:

<!--#in "objectValues(['Folder'])"-->
  <p>
  My id is: <!--#var id--><br>
  My common_name is: <!--#var common_name-->
  </p>
<!--#/in-->


Brian Lloyd        brian@digicool.com
Software Engineer  540.371.6909              
Digital Creations  http://www.digicool.com