Copied to clipboard

Flag this post as spam?

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


  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    Mar 15, 2017 @ 09:50
    Michaël Vanbrabandt
    0

    Update value of custom property editor after saving the document

    Hi,

    I am trying to make a property mirror editor which is just a textfield that needs to be a clone of the node name.

    Everything works fine except if you change the name of the node you first need to refresh the page before the new name is visible.

    Is there a way of doing this automatically like the url of the document which is automaticaly changed after hitting save?

    Editor:

    <div ng-controller="Mivaweb.PropertyMirrorController">
        <input type="text" class="umb-editor umb-textstring" ng-model="model.value" />
    </div>
    

    Controller:

    angular.module("umbraco")
    .controller("Mivaweb.PropertyMirrorController",
    
        function ($scope, editorState) {
    
            $scope.model.value = editorState.current.name;
    
        }
    );
    

    /Michaël

  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    Mar 15, 2017 @ 11:02
Please Sign in or register to post replies

Write your reply to:

Draft