Copied to clipboard

Flag this post as spam?

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


  • Mark Stoddard 2 posts 71 karma points c-trib
    Aug 04, 2014 @ 23:07
    Mark Stoddard
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft