[Zope3-Users] How do I get the Interfaces in right order?

Stephan Richter srichter at cosmos.phy.tufts.edu
Mon Aug 1 11:43:15 EDT 2005

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)
> to:
> (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 

Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training

More information about the Zope3-users mailing list