In the root.... A DTML Method.... 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. <pseudo code> <dtml-in "objectItems(['*'])"> <dtml-if ahelppage> <a href="<dtml-var id>"><dtml-var document_title></a> </dtml-if> </dtml-in> Any other good solutions are welcomed!
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
participants (3)
-
Chris Withers -
peter be -
Rik Hoekstra