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.
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
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
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
is working on a reply...