On Monday 18 July 2005 12:49, Johan Carlsson wrote:
> But how can I control that order?
> Also, which maybe is more of a question for the zope3 developers
> which I assume is on this list as well :-), woundn't it be a
> good idea to have someway of overriding the order of menus.
> Maybe just swaping the order of the sorting items from:
The order of menu items can also be controlled using the "order" attribute.
> (ifaces.index(item._for or Interface), item.order, item.title, item)
> (item.order, ifaces.index(item._for or Interface), item.title, item)
You really do not want to mess with the interface order, ever!
> But order doesn't seem to be implemented everywhere?
> For instance not all ZCML directives that implement the menu (MenuField)
> implemets the order field?
Then don't use those menu attributes and write out the menuItem directive
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
Zope3-users mailing list