Copied to clipboard

Flag this post as spam?

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


  • Paul de Quant 403 posts 1520 karma points
    Jan 17, 2018 @ 14:37
    Paul de Quant
    0

    Using the mediapicker for files / documents only

    Hello,

    I'm building a custom grid control and I need to be able to browse for a document / file. ideally i don't want to show any images - is this possible? Here's my code so far - are there any other settings I can change?

            $scope.mediaPickerOverlay = {};
            $scope.mediaPickerOverlay.view = "mediapicker";
            $scope.mediaPickerOverlay.startNodeId = $scope.model.config && $scope.model.config.startNodeId ? $scope.model.config.startNodeId : undefined;
            $scope.mediaPickerOverlay.startNodeIsVirtual = $scope.mediaPickerOverlay.startNodeId ? $scope.model.config.startNodeIsVirtual : undefined;
            $scope.mediaPickerOverlay.cropSize = $scope.control.editor.config && $scope.control.editor.config.size ? $scope.control.editor.config.size : undefined;
            $scope.mediaPickerOverlay.showDetails = true;
            $scope.mediaPickerOverlay.disableFolderSelect = true;
            $scope.mediaPickerOverlay.onlyImages = false;
            $scope.mediaPickerOverlay.show = true;
    
  • Nigel Wilson 945 posts 2077 karma points
    Jan 17, 2018 @ 18:26
    Nigel Wilson
    0

    Hi Paul

    Just a thought - would you be able to use a multi node picker, set it to media and then in the Allow Items of Type, add the "File" media type ?

    If you only want one file picked then you could set the min / max to 1.

    Cheers, Nigel

  • Paul de Quant 403 posts 1520 karma points
    Jan 18, 2018 @ 10:46
    Paul de Quant
    0

    Hi Nigel,

    Thanks for help - I don't suppose you know where I can get the angular code to implement a multi node tree picker?

    Thanks

    Paul

  • Nigel Wilson 945 posts 2077 karma points
    Jan 18, 2018 @ 16:30
    Nigel Wilson
    0

    Hi Paul

    No sorry I don't and that thought did come to mind when responding.

    And sorry, I am not much help in the angular department - something I've not got to grips with...

    Good luck in your quest.

    Nigel

Please Sign in or register to post replies

Write your reply to:

Draft