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
Stepping through the Umbraco.PropertyEditors.ContentPickerController code, I eventually get to where it loads the dialog with:
//dialog$scope.openContentPicker = function () { var d = dialogService.treePicker($scope.cfg);};
This is called from clicking on the '+ Add' link in the property editor, which is bound to the function via:
<a href="#" ng-click="openContentPicker()" prevent-default=""> <localize key="general_add" class="ng-isolate-scope ng-scope">Add</localize></a>
I'm wanting to use my own tree picker view and controller, but am not sure how. Do I write a plugin for this, and if I'm writing a plugin, can I re-use the original Content Picker markup and javascript?
Thanks,Mark Stoddard
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Using custom tree picker with ContentPickerController
Stepping through the Umbraco.PropertyEditors.ContentPickerController code, I eventually get to where it loads the dialog with:
//dialog
$scope.openContentPicker = function () {
var d = dialogService.treePicker($scope.cfg);
};
This is called from clicking on the '+ Add' link in the property editor, which is bound to the function via:
<a href="#" ng-click="openContentPicker()" prevent-default="">
<localize key="general_add" class="ng-isolate-scope ng-scope">Add</localize>
</a>
I'm wanting to use my own tree picker view and controller, but am not sure how. Do I write a plugin for this, and if I'm writing a plugin, can I re-use the original Content Picker markup and javascript?
Thanks,
Mark Stoddard
is working on a reply...