Copied to clipboard

Flag this post as spam?

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


  • Christopher 6 posts 96 karma points
    Mar 08, 2019 @ 12:58
    Christopher
    0

    How to extend default grid-editors

    Hi, I'm currently trying to add a URL link to the default editor 'image' in Umbraco grid, However, I'm struggling to find how to extend these objects. I know I can create my own custom editor which can allow me to do this however I would prefer to add this functionality to the default image editor.

    Thanks, Chris.

    enter image description here

  • Søren Gregersen 441 posts 1884 karma points MVP 2x c-trib
    Mar 08, 2019 @ 21:31
    Søren Gregersen
    100

    well, the thing is ...

    The default grid editors are relying on build-in property editors. This means that in order for you to change them, you would change files that are inside the "umbraco"-folder. Normally you should not edit files in that folder.

    I would urge you to copy the view / controller that you need to change, and add the new properties to your own copy. The view for the media editor is in Umbraco/Views/propertyeditors/grid/editors/media.html

    There is some documentation here https://our.umbraco.com/documentation/getting-started/backoffice/property-editors/built-in-property-editors/grid-layout/build-your-own-editor

    And a tutorial here https://skrift.io/articles/archive/how-to-create-custom-editors-for-the-umbraco-grid/

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies