This project is read-only.

Move shape among global zones

Topics: Customizing Orchard, General
Jul 17, 2011 at 2: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 8:22 AM

Try the following in your theme:

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

Jul 19, 2011 at 5: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 1:51 AM

I don't hink you need the RemoveAt.