Copied to clipboard

Flag this post as spam?

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


  • Robert 20 posts 39 karma points
    Oct 24, 2014 @ 18:19
    Robert
    0

    Umbraco 7 Media Picker, open to specific folder

    I'm following this guide: I'm using the media picker directive provided by Tim, Thanks Tim!

    http://www.nibble.be/?p=454

    How can I open the media picker to a specific folder or (id of the folder)? This is for a custom section, custom tree.

    Is it possible to prevent navigating from that folder?

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Oct 27, 2014 @ 09:57
    Dave Woestenborghs
    0

    You can add a property to your to set the startNodeId in your mediapicker call.

    Something like this :

    dialogService.mediaPicker({ startNodeId : yourNodeId, callback: yourCallbackFunction});

    Dave

  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    Oct 27, 2014 @ 12:06
    Jeroen Breuer
    0

    You can also change the media picker start node programmatically. I'm doing this in the Hybrid Framework: https://github.com/jbreuer/Hybrid-Framework-for-Umbraco-v7-Best-Practises/blob/master/Umbraco.Extensions/Utilities/WebApiHandler.cs

    I explain how it works in this video: https://www.youtube.com/watch?v=Enni9r0whCE

    Jeroen

  • 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