[Zope] dtml-in theentiresite

Chris Withers chrisw@nipltd.com
Tue, 12 Sep 2000 09:58:45 +0100


peter be wrote:
> Some objects (mostly DTML Documents) have a property (boolean) that tells
> whether this is a helppage or not.
> What I want to do is to loop though eash and every object in the entire site
> (not very big) and check if the object has this property.

Does your site have any folderish objects in it?
Doe you want to recurse abnd iterate through them?

This should work unless you need to recurse:

<dtml-in objectValues>
  <dtml-if ahelppage>
    <a href="<dtml-var id>"><dtml-var document_title></a>
  </dtml-if>
</dtml-in>

cheers,

Chris