Copied to clipboard

Flag this post as spam?

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


  • Tommy Pedersen 6 posts 36 karma points
    Jul 17, 2015 @ 11:45
    Tommy Pedersen
    0

    Custom Grid Editors in sub folders

    Hey

    As the topic states, i need somehow to be able organize the Grid Editor partial views in sub folders inside the "~\Views\Partials\Grid\Editors".

    when i try to do something like: "~\Views\Partials\Grid\Editors\ContentEditors\SomeSweetEditor.cshtml"

    i get the following error message inside the grid editor in umbraco backoffice:

    "Something went wrong with this editor, below is the data stored:"

    Do i do something wrong or does leblender not read view files inside subfolders ? since this will help organizing big numbers of grid editors.

  • Elliot Spaull 8 posts 55 karma points
    Jul 17, 2015 @ 13:27
    Elliot Spaull
    0

    You should be able to tell Umbraco where to look for the partial view in your package.manifest file:

    {
        gridEditors:
        [
            {
                "name": "SomeSweetEditor",
                "alias": "somesweeteditor",
                "view": "/App_Plugins/SomeSweetEditor/SomeSweetEditor.html",
                "render": "Path/To/View/Here",
                "icon": "icon-link"
            }
        ]
    }
    

    I don't know if this works with LeBlender though I'm afraid.

  • Antoine 176 posts 1494 karma points
    Jul 21, 2015 @ 15:52
    Antoine
    100

    You can define your custom render path in the render field:

    custom view render path

  • Tommy Pedersen 6 posts 36 karma points
    Jul 22, 2015 @ 11:58
    Tommy Pedersen
    0

    After updating to the the new version 1.0.8, it finally started working, used that way of filling out the render information all the time, but seems it started working after updating.

Please Sign in or register to post replies

Write your reply to:

Draft