umbraco-doc-type-grid-editor
umbraco-doc-type-grid-editor copied to clipboard
DocTypeGridEditor v10 has missing views
trafficstars
With the update to Umbraco 10 DocTypeGridEditor moved to a RazorClassLibrary but all views are now missing if used with the example configuration:
[
...
{
"name": "Doc Type",
"alias": "docType",
"view": "/App_Plugins/DocTypeGridEditor/Views/doctypegrideditor.html",
"render": "/App_Plugins/DocTypeGridEditor/Render/DocTypeGridEditor.cshtml",
"icon": "icon-item-arrangement",
"config": {
"allowedDocTypes": [...],
"nameTemplate": "",
"enablePreview": true,
"overlaySize": "medium",
"viewPath": "/Views/Partials/Grid/Editors/DocTypeGridEditor/",
"previewViewPath": "/Views/Partials/Grid/Editors/DocTypeGridEditor/Previews/",
"previewCssFilePath": "",
"previewJsFilePath": ""
}
},
...
]
The Razor docs mention that .cshtml should include the AddRazorSupportForMvc property for views to be included in the DLL.
Additionally I believe that the plugin code should be moved back to the App_Plugins folder to maintain compatibility with V9 configs.