public ThemingFileProvider()
        {
            _viewStartFileInfo = new ContentFileInfo("_ViewStart.cshtml", "@{ Layout = \"~/Views/Shared/_Layout.cshtml\"; }");
            _viewImportsFileInfo = new ContentFileInfo("_ViewImports.cshtml", "@inherits Orchard.DisplayManagement.Razor.RazorPage<TModel>");
            _layoutFileInfo = new ContentFileInfo("_Layout.cshtml", @"
                    @{
                        var body = RenderLayoutBody();
                        ThemeLayout.Content.Add(body);
                    }

                    @Display(ThemeLayout)
                ");
        }
Exemple #2
0
        public ThemingFileProvider()
        {
            _viewStartFileInfo   = new ContentFileInfo("_ViewStart.cshtml", "@{ Layout = \"~/Views/Shared/_Layout.cshtml\"; }");
            _viewImportsFileInfo = new ContentFileInfo("_ViewImports.cshtml", "@inherits Orchard.DisplayManagement.Razor.RazorPage<TModel>");
            _layoutFileInfo      = new ContentFileInfo("_Layout.cshtml", @"
                    @{
                        var body = RenderLayoutBody();
                        ThemeLayout.Content.Add(body);
                    }

                    @Display(ThemeLayout)
                ");
        }
 public ThemingFileProvider()
 {
     _viewImportsFileInfo = new ContentFileInfo("_ViewImports" + RazorViewEngine.ViewExtension, "@inherits Orchard.DisplayManagement.Razor.RazorPage<TModel>");
 }
Exemple #4
0
 public ThemingFileProvider()
 {
     _viewImportsFileInfo = new ContentFileInfo("_ViewImports.cshtml", "@inherits Orchard.DisplayManagement.Razor.RazorPage<TModel>");
 }