[Zope] objectValues not working below root
Jaroslav Lukesh
lsh@wo.cz
Mon, 6 Jan 2003 14:05:43 -0000
| Odes=EDlatel: huzza boo <huzzaboo@yahoo.com>
| I've created a test folder below the root, and within
| it placed two more folders. I'm simply trying to get
| the subfolders to display in my index_html document in
| my first test root folder. I'm using:
|=20
| < ul>
| < dtml-in expr=3D"objectValues('Folder')">
| < li>< dtml-var title_or_id>
| < /dtml-in>
| < /ul>
|=20
| ...and getting nothing but empty ul tags.
|=20
| If I try this at the absolute root, it works. In any
| sub folder, it does not.=20
Hi,
I generally use this piece of code to display subfolders:
<UL>
<dtml-in "PARENTS[0].objectValues(['Folder',
'LinkedFolder','PortableHole'])" sort=3Did skip_unauthorized
><dtml-if expr=3D"_.string.find(_['id'],'images')=3D=3D0"
><dtml-elif expr=3D"_.string.find(_['id'],'img')=3D=3D0"
><dtml-elif "hasProperty('hide')"
><dtml-else
><li><a href=3D"<dtml-var absolute_url>/"><dtml-var navi_BANNER></a></l=
i>
</dtml-if
></dtml-in>
</UL>
Regards JL.