Hi,
I'm trying to build a gallery using items and razor. I have created an item, which so far only contains one field of the type "folder".
The idea is to grab the folder-name and then somehow loop through the images within the specified folder. The problems is, that the item field outputs a string with the given folder location. Right now I don't know how I can use the folder name to retrieve all the images within in.
I was hoping to be able to do something like this:
@{
var item = GetValue("Item.Mappe.Value");
foreach(var slide in GetLoop("Item.Mappe")){
...
}
}
This won't work. But is there a way to retrieve the images/files in a folder using razor?
Thanks in advance.
/Martin