Copied to clipboard

Flag this post as spam?

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


  • Ronish Potiah 19 posts 171 karma points
    Jul 28, 2016 @ 12:29
    Ronish Potiah
    0

    Multinode Treepicker For Members

    Hello, I am using a Multinode Treepicker in order to select members. I have checked the "Show open button" and "Show edit button" options but these buttons are not showing after selecting a member.

    When the "Node Type" is set to "Content" rather than "Members", the buttons are displayed.

    See screenshots. Any help will be appreciated. Thanks.

    enter image description here

    enter image description here

  • John Churchley 272 posts 1258 karma points c-trib
    Jul 28, 2016 @ 12:46
    John Churchley
    0

    Hi Ronish,

    Sounds like a bug or that more description is needed to say "Content Only".

    You can report bugs here:

    http://issues.umbraco.org/dashboard

  • Ian 178 posts 752 karma points
    Jul 28, 2016 @ 12:47
    Ian
    0

    Haven't done it but this code in the content picker view and controller would say that open and edit buttons do not show for pickers with members.

    View:

    <div ng-if="!dialogEditor && ((model.config.showOpenButton && allowOpenButton) || (model.config.showEditButton && allowEditButton))">
                    <small ng-if="model.config.showOpenButton && allowOpenButton"><a href ng-click="showNode($index)"><localize key="open">Open</localize></a></small>
                    <small ng-if="model.config.showEditButton && allowEditButton"><a href umb-launch-mini-editor="node"><localize key="edit">Edit</localize></a></small>
                </div>
    

    Controller:

    var entityType = $scope.model.config.startNode.type === "member"
        ? "Member"
        : $scope.model.config.startNode.type === "media"
        ? "Media"
        : "Document";
    $scope.allowOpenButton = entityType === "Document" || entityType === "Media";
    $scope.allowEditButton = entityType === "Document";
    

    allowOpenButton & allowEditButton will be false because in your case the start node is neither Document or Media.

Please Sign in or register to post replies

Write your reply to:

Draft