Position property in MenuItem not exposed to the view

Oct 31, 2010 at 10:14 PM

Hi guys,

I'm looking at implementing a basic hierarchical menu on the frontend using this post:

However I noticed that the Position property on the MenuItem class is no longer set on the ViewModel in 0.8 (I guess it was in 0.5).

I can add it back by editing Orchard.UI.Navigation.MenuFilter line 40:

            foreach (var menuItem in menuItems) {
                var menuItemShape = shapeFactory.MenuItem()

Was this dropped intentionally? Is the view not meant to be aware of the position (since you already perform ordering in the controller).

Thanks, Adam.