Copied to clipboard

Flag this post as spam?

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


  • Yoni Cohen 11 posts 71 karma points
    Nov 09, 2014 @ 20:32
    Yoni Cohen
    0

    Umbraco 7 Media Picker, StartNodeId not exsist

    Hi, i'm trying to developer media picker that can remeber what is the last folder I chosed.

    The problem which I'm having is that when I'm passing the start node id, and the id not exsist I'm getting the YSOD.

    Help?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Nov 09, 2014 @ 21:00
    Jan Skovgaard
    0

    Hi Yoni

    Could you perhaps share your code and the ysod error message you're getting? I think that will make it easier for people to try and help you out :)

    Looking forward to hearing from you.

    /Jan

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Nov 09, 2014 @ 21:00
    Dennis Aaen
    0

    Hi Yoni,

    Perhaps, this post can help you further, to get the media picker to remember the last id http://our.umbraco.org/forum/developers/extending-umbraco/57614-Umbraco-7-Media-Picker,-open-to-specific-folder

    Hope this helps,

    /Dennis

  • Yoni Cohen 11 posts 71 karma points
    Nov 10, 2014 @ 08:36
    Yoni Cohen
    0

    Hi, let me rephrase the question.

    I want to developer a custom Media Picker, which remember the last folder id I used, and I came a cross 2 issues:

    1. "StartNodeId" - Set the folder but I can't seem to go up in the media tree (If startNodeId != -1 - The Root MEDIA is hidden).
     
          2. When I'm using the "startNodeId", and set it to not exsisting media folder - I get the following YSOD.

    Any suggestions?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Nov 10, 2014 @ 12:05
    Jeroen Breuer
    0

    Hello,

    Have a look at the Hybrid Framework. In this video I also mention how it's possible to change the media picker start node programmatically instead of a datatype prevalue.

    Another example: http://issues.umbraco.org/issue/U4-2670#comment=67-15418

    Jeroen

  • Yoni Cohen 11 posts 71 karma points
    Nov 13, 2014 @ 10:02
    Yoni Cohen
    0

    Hi Jeroen,

    I took a look in the hybrid framework, but it still doesn't work for me.

    the big issue in "startNodeId", is that i can't go back in the tree (my first image above) back to the root media.

    any suggestions?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Nov 13, 2014 @ 10:05
    Jeroen Breuer
    0

    Hello,

    It's called a start node because that is where the tree starts. Going up in the tree again is not supported and probably never will. If you want folders higher in the tree you should set the start node higher.

    Jeroen

  • Yoni Cohen 11 posts 71 karma points
    Nov 16, 2014 @ 15:33
    Yoni Cohen
    100

    Hi Jeroen,

    What I'm trying to is to "remember" the last place the user chosed a photo,
    so in the next time he will open the media picker - The "active" folder will be the last one 

Please Sign in or register to post replies

Write your reply to:

Draft