Hey René, I'd be happy to help only I'm a little confused what you're trying to do. Let me see if I get this right: You have two folders in the Media section, one includes the photos, and the other includes the thumbnails? How are you planning to match those up? Unless you really want to have the user create their own thumbnails, I'd suggest using ImageGen to auto-generate the thumbnails. In which case you'd do something like this:
Get Media from 2 folders
Hi
Umbraco ver 4.7.2
I try to create a gallery with pictures of two folders, one for thumbsnails and one for the big pictures
I'm stuck and I hope there is someone who can give a hint in the right direction
Tanks in advance
René
Hey René, I'd be happy to help only I'm a little confused what you're trying to do. Let me see if I get this right: You have two folders in the Media section, one includes the photos, and the other includes the thumbnails? How are you planning to match those up? Unless you really want to have the user create their own thumbnails, I'd suggest using ImageGen to auto-generate the thumbnails. In which case you'd do something like this:
HI Douglas
I understand you were confused, i was stuckd in a solution that was not working, and i my self were a bit confused.
Tanks for your help, works great.
Here is the code i used (one small thing changed medie changed to child)
@using umbraco.MacroEngines
@inherits DynamicNodeContext
@if(Model.HasValue("photos"))
{
var folder =Library.MediaById(Model.photos);
foreach(var child in folder.Children)
{
<a href="@child.umbracoFile">
<img src="/ImageGen.ashx?image=@(child.umbracoFile)&height=100" alt=""/>
</a>
}
}
Tanks
is working on a reply...