Copied to clipboard

Flag this post as spam?

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


  • ThomasBrunbjerg 90 posts 182 karma points
    Oct 04, 2017 @ 12:38
    ThomasBrunbjerg
    0

    Selecting the start node for a content picker

    I am using the UI-O-Matic extension with a Content Picker as field editor. I want to change the start node that opens when the user selects the picker. So far I've found this code, where it might be possible to make this change:

    $scope.openContentPicker = function () {
                    var d = dialogService.treePicker({
    
                        section: "content",
                        treeAlias: "content",
                        multiPicker: false,
                        callback: populate
                    });
                };
    
                $scope.model.config.StartNodeId = 1083;
                if ($scope.model.config.StartNodeId) {
                    options.startNodeId = $scope.model.config.StartNodeId;
                }
    

    I want the start ID to be 1083, and I have changed it as so in the code, but it still defaults to my root node.

    How can I change the start node id correctly?

  • 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.

Please Sign in or register to post replies