Copied to clipboard

Flag this post as spam?

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


  • Graham Davis 109 posts 364 karma points
    Jan 04, 2020 @ 01:54
    Graham Davis
    0

    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?

    enter image description here

  • John Bergman 477 posts 1096 karma points
    Jan 04, 2020 @ 12:56
    John Bergman
    0

    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.

  • David Brendel 786 posts 2952 karma points MVP c-trib
    Jan 04, 2020 @ 21:24
    David Brendel
    0

    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

  • Graham Davis 109 posts 364 karma points
    Jan 05, 2020 @ 01:12
    Graham Davis
    0

    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?

  • David Brendel 786 posts 2952 karma points MVP c-trib
    Jan 05, 2020 @ 01:26
    David Brendel
    0

    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

  • Graham Davis 109 posts 364 karma points
    Jan 05, 2020 @ 03:18
    Graham Davis
    0

    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?

Please Sign in or register to post replies

Write your reply to:

Draft