How to witch Layout from cutsom page.

Topics: Customizing Orchard, General, Writing modules, Writing themes
Aug 11, 2011 at 3:55 AM

Hi all,

I've registered Route in Orchard with Themed attribute in controller. It's always render with Layout.cshtml in current them.

I plan to apply fluid layout to some page (custom page).

Do you have any suggestion for switch alternate layout from custom page?

 

Thank you.

Coordinator
Aug 23, 2011 at 1:01 AM

Sure: http://orchardproject.net/gallery/List/Modules/Orchard.Module.Downplay.Orchard.LayoutSelector

Jan 2, 2012 at 4:01 PM

Use the "Designer Tools" module and enable URL Alternates.Then any page that you want to customize just create a new page in the project file like so.

Layout-url-yourpagename.cshtml