[Zope] show all objects in a folder
Michel Pelletier
michel@digicool.com
Sat, 21 Aug 1999 22:05:42 -0400
Stephan Richter wrote:
>
> I have a folder that contains 'News Items' (new Zope Portal Site). I want to
> display the title of the 'News Items' on a page. Basically my little news
> section. How can I do this?
>
> What is the method that displays all objects in a folder or container class?
>
Use 'objectValues'. objectValues can accept a string containing one
meta_type, or a list of strings specifying multiple meta_types:
<dtml-in objectValues>
<dtml-var title>
</dtml-in>
will show all object's titles or
<dtml-in "objectValues('News Item')">
<dtml-var title>
</dtml-in>
will just render news items, or:
<dtml-in "objectValues(['News Item', 'DTML Document'])">
<dtml-var title>
</dtml-in>
will render news items and dtml documents.
-Michel
> regards,
> stephan
> --
> Stephan Richter
> iXL - Software Designer and Engineer
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
>
> (To receive general Zope announcements, see:
> http://www.zope.org/mailman/listinfo/zope-announce
>
> For developer-specific issues, zope-dev@zope.org -
> http://www.zope.org/mailman/listinfo/zope-dev )