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,
Anyone know how to get the node name in a custom property editor?
editorState doesn't appear to contain the value.
Hi John,
<p> Are you sure you want to delete {{currentNode.name}} ? </p>
// Herman
Hi Herman,
No that doesn't work i'm afraid.
Hi John, Try this instead:
angular.module("umbraco").controller("testController", function ($scope, $routeParams, $http, contentResource) { contentResource.getById($routeParams.id) .then(function (data) { console.log(data.name); }); });
The data variable contains all information about your node.
That works accept it doesn't update when the name has been edited by the user.
I ended up binding to
editorState.current
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Custom property editor - Get Node Name
Hi,
Anyone know how to get the node name in a custom property editor?
editorState doesn't appear to contain the value.
Hi John,
// Herman
Hi Herman,
No that doesn't work i'm afraid.
Hi John, Try this instead:
The data variable contains all information about your node.
// Herman
Hi Herman,
That works accept it doesn't update when the name has been edited by the user.
I ended up binding to
is working on a reply...