Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
ok find the solution in this post:
https://our.umbraco.org/forum/umbraco-7/developing-umbraco-7-packages/49559-Angular-how-to-get-item-name-changes
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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:
Controller:
/Michaël
ok find the solution in this post:
https://our.umbraco.org/forum/umbraco-7/developing-umbraco-7-packages/49559-Angular-how-to-get-item-name-changes
/Michaël
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.