Project Description
A simple part for switching to different versions of Layout.cshtml when editing Orchard content items.

Instructions for use

Installing this module gives you a new part called LayoutSelector. In the Content Types admin area, you can add this part to any of your Content Types.

This will then give you a drop-down box when you create or edit a content item of that type.

When the item is displayed in Detail mode, Orchard will look for a Layout.{SelectedName}.cshtml instead of Layout.cshtml. This allows you to easily switch between different overall layouts on your pages.

The drop-down list of layout names can be populated using the interface ILayoutAlternatesProvider ... we are working on ways to make it populate automatically and without code.

Last edited Nov 16, 2011 at 1:10 PM by randompete, version 2