[Zope] dtml-tree advice, please

Dieter Maurer dieter@handshake.de
Tue, 10 Oct 2000 11:44:54 +0200 (CEST)


Brian Withun writes:
 > I have two ZClasses.  One ("Album") is folderish, and serves as a photo
 > album.  The other ("Photo") isn't and serves as a photo in an Album.  Albums
 > can contain only Albums and Photos.
 > 
 > I would like to have a dtml-tree represent this hierarchy of Albums and
 > Photos.
 > 
 > The Question:
 > -------------
 > 
 > should I use
 > 
 > <dtml-tree branches_expr="objectValues('Album')" ..
 > 
 > Things to consider:
 > -------------------
 > 
 > I need the branches to represent two different meta types, Album and Photo.
 > If I use branches_expr="objectValues('Album') I'll see the tree rendered
 > with only Albums, and no Photos shown.
You may try:

	<dtml-tree branches_expr="objectValues(['Album','Photo'])">


Dieter