Copied to clipboard

Flag this post as spam?

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


  • Sherry Ann Hernandez 320 posts 344 karma points
    May 19, 2011 @ 15:02
    Sherry Ann Hernandez
    0

    specific folder to select when using media picker

    Hi,

    Is it possible to define the folder where the media picker should select? Example is for our banner images, we want the user to select only the images under the banner folder.

    Thanks

    Sherry

  • Tom Fulton 2030 posts 4998 karma points c-trib
    May 19, 2011 @ 16:13
    Tom Fulton
    0

    Hi Sherry,

    There is no way to do this in the default media picker, other than setting the user's start node.

    But, the Multi Node Tree Picker supports a Start Node if that suits your needs.

    Otherwise, Digibiz Advanced Media Picker has added a Start Node setting also, and has some other cool features as well.  But this was added since the initial realease so you'll need to download and build the source from Codeplex if you want these features.  There are still a few bugs with Media Type restrictions but for the most part it's stable.

    -Tom

  • Sherry Ann Hernandez 320 posts 344 karma points
    May 19, 2011 @ 16:47
    Sherry Ann Hernandez
    0

    Hi Tom,

    What do you mean by "But this was added since the initial realease". Because I look at it and it doesn't say that it remove that features.

    Using this, do I need to change how I reference the media in my xslt?

  • Tom Fulton 2030 posts 4998 karma points c-trib
    May 19, 2011 @ 16:50
    Tom Fulton
    0

    Hi Sherry,

    I meant that if you download the package from the Project Page, the Start Node feature won't be there - it was added after the first release and hasn't been released and packaged yet. 

    But actually, nevermind!  I was confused, that feature is there in the packaged version :)  So go for it!  So many new features have been added I lost track of what was there initially.

    -Tom

  • Sherry Ann Hernandez 320 posts 344 karma points
    May 19, 2011 @ 16:57
    Sherry Ann Hernandez
    0

    Follow up question, do I need to change on how I reference the media in my xslt?

  • Tom Fulton 2030 posts 4998 karma points c-trib
    May 19, 2011 @ 17:00
    Tom Fulton
    0

    If you set the storage type to "ID", you don't need to change your XSLT.

    If you set it to Full Media XML, you do need to change your XSLT, but the benefit is you no longer need to use GetMedia calls, you can reference the image properties directly from your field (ie $currentPage/myField/DAMP/mediaItem/Image/umbracoFile  instead of umbraco.library:GetMedia($currentPage/myField,false()/umbracoFile )

    One warning - if you replace your existing media picker fields with DAMP, you will need to re-pick all your media on the content pages (regardless if using ID or Full Media XML).  DAMP uses a different DB storage type so your existing media selections won't come over.

    -Tom

  • Sherry Ann Hernandez 320 posts 344 karma points
    May 19, 2011 @ 17:04
    Sherry Ann Hernandez
    0

    Does it mean it will be much faster as it won't be using the GetMedia? Or there won't be any difference with the performance?

Please Sign in or register to post replies

Write your reply to:

Draft