[ZDP] BackTalk to Document The Zope Book (2.6 Edition)/Appendix A: DTML Reference

webmaster at zope.org webmaster at zope.org
Fri Dec 12 20:17:24 EST 2003


A comment to the paragraph below was recently added via http://zope.org/Documentation/Books/ZopeBook/2_6Edition/AppendixA.stx#3-151

---------------

      branches=string -- Finds tree branches by calling the named
      method. The default method is 'tpValues' which most Zope objects
      support. 

        % Anonymous User - Dec. 12, 2003 7:52 pm:
         Hmmm. I'd think the following would make a tree containing only folders:

                 <dtml-tree branches="objectValues('Folder')" single=true>
                         [whatever]
                 </dtml-tree>

         But no dice. In fact, I can't get even get ... branches="objectValues()" ... to work, or ...
         branches=objectValues() ...
         Any hints?

        % Anonymous User - Dec. 12, 2003 8:17 pm:
         Hint: branches_expr=objectValues('Folder')



More information about the ZDP mailing list