On Fri, 17 Mar 2000, Jason Spisak wrote:
Zopists,
Is there anyway to create a list of unique meta_types in a folder without knowing them before hand.
I would hate to pack them into a REQUEST variable throught iteration because that would take forever.
Some thing like
<dtml-in possible_types> <dtml-in "objectValues(_['sequence-item'])"> <dtml-var mycode> </dtml-in> </dtml-in>
objectValues can take a list as an argument. Assuming possible_types is a list then : <dtml-in "objectValues(possible_values)"> should work Pavlos
I am trying to let the viewer sort the view by meta_type but only have the meta_type they ask for show up. Just like the UniqueValuesfor in the Catalog only for a Folder.
All my best,
-- Jason Spisak 444@hiretechs.com
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )