I have a custom Menu item on the Member setup which opens a new dialog.
Inside I have a view loaded with a controller where I need to have access to the config of my custom property which is a content picker on my member type: $scope.model.config.myPropertyAlias.
When I lookup this value using the console I see, when I click on a member, the correct value of my property config, eg the Id of the selected content node.
But when I click on the Action menu item I get an error in the console:
TypeError: Cannot read property 'config' of undefined
(function () {
'use strict';
function myCustomController(
$scope,
$http,
editorState,
contentResource) {
var vm = this;
// Set the member name
vm.memberName = editorState.current.name;
// Get the page
vm.node = $scope.model.config.memberRedirectPage;
}
angular.module('umbraco')
.controller('MyCustomController', myCustomController);
})();
Get Property config value inside ActionView
Hi all,
I have a custom Menu item on the Member setup which opens a new dialog.
Inside I have a view loaded with a controller where I need to have access to the config of my custom property which is a content picker on my member type:
$scope.model.config.myPropertyAlias
.When I lookup this value using the console I see, when I click on a member, the correct value of my property config, eg the Id of the selected content node.
But when I click on the Action menu item I get an error in the console:
TypeError: Cannot read property 'config' of undefined
My view:
My controller:
/Michaël
is working on a reply...