Move shape among global zones

Topics: Customizing Orchard, General
Jul 17, 2011 at 1:53 PM

If i want to move Menu shape from Navigation zone to Header zone, how to do this?

I guess doesn't work for global zones.



Jul 18, 2011 at 7:22 AM

Try the following in your theme:

WorkContext.Layout.Header.Add(New.Parts_Menu(), "1");

Jul 19, 2011 at 4:15 AM

It works by writing this (in Layout.cshtml):

WorkContext.Layout.Header.Add(Model.Navigation.Items[0], "4");

is there a better solution?

ps: in line 52 in MenuFilter, it is hard code add menuShape  into navigation zone:

Jul 26, 2011 at 12:51 AM

I don't hink you need the RemoveAt.