Copied to clipboard

Flag this post as spam?

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


  • Remko 118 posts 283 karma points
    May 08, 2020 @ 10:02
    Remko
    0

    How to enable infinite editing in listview? Is this even possible?

    Like to know if thats possible somehow..

    When theres a listview and you like to edit some child nodes, you now open up a new window. It would be great if infinite editing would also be possible from here, so you can easily edit child nodes and stay on parent node..

    Anyone has thought about this or maybe even made this happen? I'm very curious..

  • Remko 118 posts 283 karma points
    May 11, 2020 @ 07:52
    Remko
    0

    Is there anyone out here who could help me a bit with this one? Thanks!

  • Remko 118 posts 283 karma points
    May 12, 2020 @ 10:22
    Remko
    1

    I figured this one out, for you guys who stumble upon this topic in the future...

    Make your own listview layout in App_Plugins. Copy it from umbraco source:

    • Umbraco.Web.UI.Client\src\views\propertyeditors\listview\layouts\list\list.html
    • Umbraco.Web.UI.Client\src\views\propertyeditors\listview\layouts\list\list.listviewlayout.controller.js

    Rename it to your own custom names and only replace clickItem in controller.js file:

     function clickItem(item) {
            var options = {
                id: item.id,
                submit: function (result) {
                    console.log(result);
                    editorService.close();
                },
                close: function (result) {
                    console.log(result);
                    editorService.close();
                }
            };
            editorService.contentEditor(options);
        }
    

    Then you'll end up with listview that opens up (infinite)editor window when clicking child items. Instead of opening a new window when clicking.

Please Sign in or register to post replies

Write your reply to:

Draft