How to use Layout selector

Download and install the layout selector from here, not from Orchard Gallery.
Go to Content/Content types and edit the "Page" ContentType.
Click on "Add parts".
Select the "Layout Selector" checkbox and click save.

If you installed the M33 System Editor, you can now add a new Razor view below themes in tab View Editor by click on "Create new".

This is important!! Name the file Layout-YOURLAYOUTNAME without extension and click on "Save".
Otherwise it wont show up.
You can now select your new layout file on each Page from a dropdown.

I have already installed the Layout Selector from Gallery!
Go to source code tab here on Codeplex and find the service ThemeLayoutAlternatesProvider.cs.
Create this file in Layout Selector Service folder, and it should work just like above.

Last edited Aug 19, 2012 at 5:18 AM by rickardmagnusson, version 6

Comments

No comments yet.