@if (Model.Items.Any()) { <!-- Wrapper for slides --> <ul> @{ var item = Model.Items.ElementAt(0);
var imageList = item.GetValue<string>("multiImageSlider"); if (!string.IsNullOrWhiteSpace(imageList)) { var imgList = imageList.Split(new[] { "," }, StringSplitOptions.RemoveEmptyEntries).Select(int.Parse);
var imgListCollection = Umbraco.TypedMedia(imgList);
if (imgListCollection != null) { foreach (var img in imgListCollection) { <li><img src="@img.Url"></li> } } } } </ul> }
How to render images with LeBlender?
Hi How is the best way to render images using LeBlender?
The code here (on Pastie)
gives me the following error within the grid:
"Something went wrong with this editor, below is the exception detail:
The value of parameter 'id' must be either a string or an integer"
Thanka in advance /T
Hi Tove, what datatype contains the images you're trying to render?
-Amir
Hi Amir Its the image picker
Best /Tove
Here's an example that will render a list of images for you if you're datatype is the new media picker.
is working on a reply...