On Thu, 14 Oct 1999, David C. Morrill wrote:
All I want to do is create a list of DTML Documents in a Folder that have a certain property defined.
However, every variant I've tried of the following simple code causes an "Infinite recursion in document template" error:
<dtml-in "PARENTS[0].objectValues(['DTML Document'])"> <dtml-var "_['sequence-item'].id"> </dtml-in>
It seems to be caused by the reference to 'sequence-item', but for the life of me I can't figure out why this should cause a problem. Anyone have any ideas?
objectValues returns a list of references to the objects. if your folder is called myfolder you could do somthing like: <dtml-in "myfolder.objectValues(['DTML Document'])"> <dtml-var title (or any other attribute of the object)> </dtml-in> Pavlos