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.
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.
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 :)
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.
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?
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
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.
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
is working on a reply...