Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Quentin Lindsey 2 posts 82 karma points
    Sep 26, 2022 @ 00:31
    Quentin Lindsey
    0

    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.

  • Matthew Wise 271 posts 1373 karma points MVP 5x c-trib
    Sep 26, 2022 @ 14:53
    Matthew Wise
    100

    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

  • Quentin Lindsey 2 posts 82 karma points
    Sep 26, 2022 @ 17:57
    Quentin Lindsey
    0

    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!

  • Nurhak Kaya 53 posts 147 karma points MVP 3x c-trib
    Dec 14, 2022 @ 20:58
    Nurhak Kaya
    0

    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

  • Tom Newt 28 posts 183 karma points
    Apr 17, 2023 @ 13:14
    Tom Newt
    0

    I'm trying to get this setup as well and have not had any luck. What I've done so far:

    1. Installed DTGE 10.0.1
    2. 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": "" } } ] }

    3. Recreated the doc types and partial views from our v7 site

    4. Added doc type to the grid layout

    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?

Please Sign in or register to post replies

Write your reply to:

Draft