Extend umbraco backoffice content editor and disable validation - hook into angular controllers
We're trying to setup a tab hider in v7 and have a few questions.
We currently setup the tab hider by editing the umbraco/js/umbraco.controllers.js file and the umbraco/views/content/edit.html files.
This allows us to set a display / hide property on each tab of the umbraco data and prevent the tabs from rendering on load.
While this works, we have two issues with it:
1. Is there a way to disable validation on properties programmatically? We'd like to disable the validation on any hidden properties. Currently any fields that should be validated are failing because they don't exist on the page (we prevent them from being output).
2. While manually editing the controller works fine for now, we'd prefer to hook into the angular controllers. Are there any events that allow us to hook into the controller on load, pre render, save, etc?
Yes, I set something up, but I did it by overriding the core file umbraco\js\umbraco.controllers.js. It works fine, except it doesn't disable validation on the hidden tabs. We're not crazy about the solution but it works good enough for our current needs.
I'd be interested in any ideas that you had about this and maybe collaborating on it.
Extend umbraco backoffice content editor and disable validation - hook into angular controllers
We're trying to setup a tab hider in v7 and have a few questions.
We currently setup the tab hider by editing the umbraco/js/umbraco.controllers.js file and the umbraco/views/content/edit.html files.
This allows us to set a display / hide property on each tab of the umbraco data and prevent the tabs from rendering on load.
While this works, we have two issues with it:
1. Is there a way to disable validation on properties programmatically? We'd like to disable the validation on any hidden properties. Currently any fields that should be validated are failing because they don't exist on the page (we prevent them from being output).
2. While manually editing the controller works fine for now, we'd prefer to hook into the angular controllers. Are there any events that allow us to hook into the controller on load, pre render, save, etc?
Thanks for any advice.
Hi Summit,
I was also thinking about a tab/property hider for v7 and how to create it.
Have you got any further with this?
Regards,
David
Yes, I set something up, but I did it by overriding the core file umbraco\js\umbraco.controllers.js. It works fine, except it doesn't disable validation on the hidden tabs. We're not crazy about the solution but it works good enough for our current needs.
I'd be interested in any ideas that you had about this and maybe collaborating on it.
Zac
is working on a reply...