layouts not found


If you get an error as file not found when trying to display for exemple a page using the layout selector, it is because the theme name is different of the theme folder in the path and which is based on Id.

There is a little mistake in the following method:
    private IEnumerable<string> ExtractLayoutNames(ExtensionDescriptor theme)
        var views = Directory.EnumerateFiles(HttpContext.Current.Server.MapPath(
                    string.Format("{0}/{1}/Views/", theme.Location, theme.Name.Replace(" ",""))), "*.cshtml").Select


I changed theme.Name.Replace(" ","") to theme.Id.Replace(" ","")


patavarini wrote Dec 9, 2013 at 1:30 PM

I can't find this method in the entire solution. Can u point me out here where do i need to apply this change??