Copied to clipboard

Flag this post as spam?

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


  • maximuss 3 posts 23 karma points
    Dec 15, 2009 @ 00:50
    maximuss
    0

    How to get all file-names and path in media

    Hey,

    I'm kinda new to Umbraco, actually it's my first try and so far i'm digging myself deeper and deeper down in the mud :)

    For now i just want to find out how i can get all the uploaded files, in this case, images, that there is located under my Media tab. And if i could get the path to then it would be nice.

    I'm working in a usercontrol and on Umbraco v4

    /Bjarne

  • Nik Wahlberg 639 posts 1237 karma points MVP
    Dec 15, 2009 @ 01:40
    Nik Wahlberg
    0

    Hi Bjarne, so you're trying to iterate all of the media items in your entire library? Regardless of parent node etc?

    Perhaps this is a good starting point for you? http://our.umbraco.org/projects/loop-images-in-media-folder

    Thanks,
    Nik

  • maximuss 3 posts 23 karma points
    Dec 15, 2009 @ 23:30
    maximuss
    0

    i have been tryed what you suggest but i can't get any output - children is empty no matter what i do :(

     

    Instead i will try to explain what i want :)

    In my media i have:

    Media
    ...Image No 1.
    ...ImageFolder
    .......Image No 2.
    .......Image No 3.

    What i want is to get access to that tree struktur in my usercontrol. E.g. first select ImageFolder and then choose Image No 2. or Image No 3.

    I have tryed several hours now, but im pretty much stucked!

     

    Bjarne Pedersen

     

     

     

Please Sign in or register to post replies

Write your reply to:

Draft