For this case, the layout that I have names is Layout-ScreenShots.cshtml. On this page, I haven't really changed anything from the original ThemeMachine Layout.cshtml, other than to put a DIV at the top telling me THIS IS THE SCREENSHOT TEMPLATE.
I tried disabling/enabling the Layout selector module, and nothing really changed. It's almost as if the Pretty Gallery module completely overrides anything else I'm doing. The next test I tried was to disable that module, and I got rid of the
containable object off the Chapter. Still nothing... The only way I can get back to using the Layout Selector is to zap the info in the db and start again...
Here's my code:
public class LayoutSelectorService : ILayoutSelectorService
private readonly IEnumerable _providers;
public LayoutSelectorService(IEnumerable providers)
_providers = providers;
/*public IEnumerable GetLayouts()
foreach (var p in _providers)
foreach (var l in p.GetLayouts())
yield return l;
public IEnumerable GetLayouts()
yield return "Default";
yield return "Overview";
yield return "ScreenShots";
yield return "Videos";
yield return "Downloads";
yield return "Comparison";
yield return "Features";
yield return "Specifications";
@ Bertrand: Chapters seem to be a regular page as part of the imported module. If I reference Pete's layout in the Chapter module, I get the layout result, but when I add the PRetty Gallery container into the layout, all I see is the PG.cshtml part.
Chapters are effectively nested pages.
Thanks again guys... Really appreciate the help.