[Zope] img in a tree?
Ethan Fremen
mindlace@Majordomo.net
Tue, 05 Oct 1999 11:48:26 +0100
I've got to make this work to use tree for my navigation...
Can someone please tell me why this:
<dtml-tree content branches_expr="objectValues(['Folder', 'DTML
Document'])" sort=order >
<dtml-if expr="meta_type == 'Folder'">
<span class="menu"><dtml-var title_or_id></span>
<dtml-else>
<dtml-if expr="id() == 'cnart'"><dtml-var cnartgif></dtml-if>
<A HREF="<dtml-var "content.absolute_url()">/
<dtml-var tree-item-url>?
<dtml-if tree-s>tree-s=<dtml-var tree-s></dtml-if>
<dtml-if tree-e>&tree-e=<dtml-var tree-e></dtml-if>
<dtml-if tree-c>&tree-c=<dtml-var tree-c></dtml-if>">
<dtml-var title_or_id></a>
</dtml-if>
</dtml-tree>
(cnartgif is in the root folder. I've tried putting it in the content
folder.)
results in this:
File /usr/local/src/Zope-2.0.0-src/lib/python/TreeDisplay/TreeTag.py,
line 154, in render
(Object: content)
File
/usr/local/src/Zope-2.0.0-src/lib/python/TreeDisplay/TreeTag.py, line
250, in tpRender
(Object: ElementWithAttributes)
File
/usr/local/src/Zope-2.0.0-src/lib/python/TreeDisplay/TreeTag.py, line
491, in tpRenderTABLE
(Object: ElementWithAttributes)
(Info: (['AAAAAAAAALc=', []], {'childless_decoration': '', 'id':
'tpId', 'branches_expr': <method Eval.eval of Eval instance at 85a7300>,
'sort': 'order', 'url': 'tpURL', 'name': 'content', '': 'content'},
[['AAAAAAAAALc=', []]], [['AAAAAAAAALc=', []]]))
File
/usr/local/src/Zope-2.0.0-src/lib/python/TreeDisplay/TreeTag.py, line
408, in tpRenderTABLE
(Object: cnart)
AttributeError: __call__
--
~mindlace