Hi I have the code that works for a single image but I’m stuck on modifying the code for the multiple image picker. This is what I’ve tried but it gives me a blank page.
t@inherits UmbracoViewPage<BlockListItem>
@{
var row = (GalleryRow)Model.Content;
if (row.GalleryImages==null) return;
}
<div class="container col-12 pb-3">
<div class="row">
<div class="col-md-4 col-sm-12">
@{
var row.GalleryImages = Model.Content.GetPropertyValue<IEnumerable<IPublishedContent>>("GalleryImages");
foreach (var item in row.GalleryItems)
{
<img src="@item.Url" style="width:200px"/>
}
}
</div>
</div></div>
Any help would be appreciated.
I have tried the above I would like the user to select Gallery block select upto 10 images and for the images to display on the page with the rest of the bloacklist items.