Copied to clipboard

Flag this post as spam?

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


  • Tom 713 posts 954 karma points
    Jun 02, 2015 @ 03:19
    Tom
    0

    Wrong Controller Instructions - Custom Grid Editor Tutorial

    Hi!

    We're building our first custom grid editor and noticed the documentation on github and on our.umbraco is a bit wrong or just doesn't work. We're using 7.2.5.

     

    https://our.umbraco.org/documentation/using-umbraco/backoffice-overview/Property-Editors/Built-in-Property-Editors-v7/Grid-Layout/build-your-own-editor

     

    In the section on controllers if we follow it to the letter:

    If you include the controller here (even with client dependency disabled, app pool restarted etc etc) it will never find the controller.

     

    What we ended up finding that worked was in the package.manifest just including the { javascript: [ "path" ]  } part and moving the rest of the gridEditors object in to the gridEditors.config file.

     

    We couldn't get umbraco to find the angular controllers path any other way.

     

    Is this a bug?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jun 02, 2015 @ 08:36
    Jan Skovgaard
    0

    Hi Tom

    The above should work - But do you mind sharing the current configuration that works for you as well? It makes it easier to see where the differences are and figure out what might be causing it :)

    Cheers, Jan

  • Tom 713 posts 954 karma points
    Jun 02, 2015 @ 09:36
    Tom
    0

    Hi @Jan thanks for your reply most appreciated.

    We had to move the custom editor alias name etc in to gridEditors.config and then move the javascript pointer to the controller in to the package folder. We couldn't include it all together in the packages folder.

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jun 02, 2015 @ 09:56
    Jan Skovgaard
    0

    Hi Tom

    Thanks for the screendumps - But could you perhaps just paste the config settings in here so it's possible to see the whole context please? :)

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft