I have a folder (foo) which contains a set of DTML Documents, and instances of a ZClass.
From another DTML document, I enumerate the contents of this folder, using a DTML-IN tag:
<dtml-in expr="bar.foo.objectValues()" sort="order">
My problem is with ..., namely dealing with both DTML documents and ZClasses. In the case of DTML Documents, the following works fine:
In the case of ZClasses, I have to use something like this:
So I'm using this:
<dtml-if expr="_['sequence-var-meta_type'] == 'DTML Document'">
But this is rather ugly, and it's the sort of thing one shouldn't have to do in an oo system.
So, is there a better way?