Hello, I've recently started working with Umbraco 10.2 and I'm a big fan of the Doc Type Grid Editor and have used it in every project I've done in the past.
After getting my U10 project started in Visual Studio I added the Doc Type Grid Editor to my project via Nuget and I'm not sure where I go to configure the Allowed Doc Types. There is no App_Plugins directory for DocTypeGridEditor and there is no config/grid.editors.config.js file in my Umbraco project either. So I'm not sure how I configure Doc Type Grid Editor.
Matthew, I appreciate the response. I was able to follow your guidance and successfully configure the Doc Type Grid Editor allowed types. Thank you so much for the assist!
Allowed Doc Types in U10
Hello, I've recently started working with Umbraco 10.2 and I'm a big fan of the Doc Type Grid Editor and have used it in every project I've done in the past.
After getting my U10 project started in Visual Studio I added the Doc Type Grid Editor to my project via Nuget and I'm not sure where I go to configure the Allowed Doc Types. There is no App_Plugins directory for DocTypeGridEditor and there is no config/grid.editors.config.js file in my Umbraco project either. So I'm not sure how I configure Doc Type Grid Editor.
Any guidance would be greatly appreciated.
Hi,
Firstly I would just highlight that DTGE is marked as obsolete in favour of using the block list editor and the soon be be coming block grid.
DTGE with many other packages now ships using an Razor Class Library (RCL) which is why there is no files in App_Plugins.
To add your own you need to create a package.manifest in your own folder in AppPlugings eg DocTypes/package.manifest adding them as before to this file - https://our.umbraco.com/documentation/extending/property-editors/package-manifest/#grid-editors the additional settings you would normally use for DTGE are on github - https://github.com/skttl/umbraco-doc-type-grid-editor/blob/dev-v9/src/Our.Umbraco.DocTypeGridEditor/AppPlugins/DocTypeGridEditor/package.manifest (you only need the grid editors part to use as an example)
Thanks
Matt
Matthew, I appreciate the response. I was able to follow your guidance and successfully configure the Doc Type Grid Editor allowed types. Thank you so much for the assist!
Hi Quentin, could you please share your solution here? I need the exact same thing, and I am not sure what I am missing.
I am following this documentation btw: https://github.com/skttl/umbraco-doc-type-grid-editor/blob/main/docs/developers-guide-v2.md
I'm trying to get this setup as well and have not had any luck. What I've done so far:
Created "
{ "gridEditors": [ { "name": "Doc Type", "alias": "docType", "view": "/AppPlugins/DocTypeGridEditor/Views/DocTypeGridEditor.html", "render": "/AppPlugins/DocTypeGridEditor/Render/DocTypeGridEditor.cshtml", "icon": "icon-science", "config": { "allowedDocTypes": ["accordion$"], "nameTemplate": "", "enablePreview": true, "viewPath": "/Views/Partials/grid/editors/DocTypeGridEditor/", "previewViewPath": "/Views/Partials/grid/editors/DocTypeGridEditor/Previews/", "previewCssFilePath": "", "previewJsFilePath": "" } } ] }
Recreated the doc types and partial views from our v7 site
I'm able to choose doc type while editing full width content, but after selecting it I do not get a selection screen. Just an empty DocType element.
Am I putting the package.manifest in the right location with the correct syntax? Does the manifest need to be compiled when I publish the site?
is working on a reply...