Error loading Razor Script LibrariesGetPictureCarousel.cshtmlCannot
implicitly convert type 'umbraco.MacroEngines.DynamicNode' to
'System.Collections.IEnumerable'. An explicit conversion exists (are you
missing a cast?)
And if i try this :
@foreach (var img in Model.image){}
I can't find any parameter wich works like @img.Image or @img.Name etc ...
Problem to load image with MultipleMediaPicker in current page
Hello,
i got a problem to load image with MultipleMediaPicker in current page.
my umbraco config looks like :
If i tried something like that :
I got this error :
Error loading Razor Script LibrariesGetPictureCarousel.cshtmlCannot implicitly convert type 'umbraco.MacroEngines.DynamicNode' to 'System.Collections.IEnumerable'. An explicit conversion exists (are you missing a cast?)
And if i try this :
@foreach (var img in Model.image) {}
I can't find any parameter wich works like @img.Image or @img.Name etc ...
Thank you in advance for your help
Your DAMP xml looks a bit strange. Are you using a custom media type which only has an image property?
What's the name of the property which has the media picker on your documenttype?
Something like this should work:
Jeroen
Yes this is a custom media, and it's work.
Thank you very much :)
is working on a reply...