[Zope3-Users] menus
Florian Lindner
mailinglists at xgm.de
Wed Feb 23 07:56:08 EST 2005
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-users
mailing list