I am using Version 8 and our Backoffice uses a lot of custom controls with their own config settings. How can I extend the Publish and Save buttons so that the settings for these controls can also be saved?
The editor seems to be a property editor. Ist that correct? If yes then my question is why you want to save it manually. It should save with the content itself.
normally you only have to make sure that the data is stored in $scope.model.value in the angular controller of your custom editor. That way ist gets picked up by umbraco when the content ist saved.
My experience with angular is limited and I don't know how to "override / inject" the proper function so that each control is validated and saved. I am able to save the settings using a process outside the framework, but thinking that would not be the best way. What do I need to do?
How to extend Save an Publish Buttons?
I am using Version 8 and our Backoffice uses a lot of custom controls with their own config settings. How can I extend the Publish and Save buttons so that the settings for these controls can also be saved?
Not sure about 8, yet - but in 7 you could catch the ContentSaving event and iterate through the submitted info to save whatever else you need saved.
Hi Graham,
The editor seems to be a property editor. Ist that correct? If yes then my question is why you want to save it manually. It should save with the content itself.
Regards David
David,
That may be what I am missing. Any suggestions on how to insure the settings are saved and how to retrieve when the page is loaded?
Hi Graham,
normally you only have to make sure that the data is stored in $scope.model.value in the angular controller of your custom editor. That way ist gets picked up by umbraco when the content ist saved.
Regards David
My experience with angular is limited and I don't know how to "override / inject" the proper function so that each control is validated and saved. I am able to save the settings using a process outside the framework, but thinking that would not be the best way. What do I need to do?
is working on a reply...