Re: [Zope] dtml-tree advice, please
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 > > > 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: Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] dtml-tree advice, please
Seb Bacon wrote: > > > > > I think you mean > > Ah, what's a bracket here or there? It may be more correct? But will render as expected. Go figure! -- Tim Cook -- Cook Information Systems | Office: (901) 884-4126 8am-5pm CDT * It's easy to stop making mistakes. Just stop having ideas. * FreePM Project Coordinator http://www.freepm.org OSHCA Founding Supporter http://www.oshca.org ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] dtml-tree advice, please
> I think you mean seb ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] dtml-tree advice, please
Brian Withun wrote: > 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. Not sure of the consequences in the tree tag. But objectValues() accepts multiple arguments. Try: branches_expr="objectValues('Album' 'Photo') HTH, -- Tim Cook -- Cook Information Systems | Office: (901) 884-4126 8am-5pm CDT * It's easy to stop making mistakes. Just stop having ideas. * FreePM Project Coordinator http://www.freepm.org OSHCA Founding Supporter http://www.oshca.org ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] dtml-tree advice, please
Consider the following situation: - 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 http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )