[Zope3-dev] menus not working
Florian Lindner
mailinglists at xgm.de
Fri Feb 25 12:14:25 EST 2005
Since I got no reply from the zope3-user list I try it here. Thanks!
Hello,
I try to use menus.
In a configure.zcml I wrote:
<menu
description="Nav Items"
id="navMenu"
title="Nav Items on the left"
/>
In another configure.zcml:
<page
[...]
title="E"
menu="navMenu"
/>
<addform
title="Add CSLink title"
[...]
menu="navMenu"
/>
Now in a page template I try:
<ul>
<li tal:repeat="navItem context/@@view_get_menu/navMenu"> <a
tal:attributes="href navItem/action"
tal:content="navItem/title">navItem</a></li>
</ul>
Which return no error on execution but simply does nothing, resulting in an
empty <ul></ul>.
When I use tal:repeat="navItem context/@@view_get_menu/zmi_views" it works,
resulting in
<li> <a href="@@contents.html">Contenido</a></li>
(my current language setting in spanish)
What's my mistake?
Thx,
Florian
More information about the Zope3-dev
mailing list