Well I've got that sorted. But now I'm running into a weird issue where if I don't include the line break before the "if" statment, I get a cs103 error?
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@if (Model.Content.HasValue("galleryImages")) { <ul> @{ var galleryImagesList = Model.Content.GetPropertyValue<string>("galleryImages").Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries).Select(int.Parse); var galleryImagesCollection = Umbraco.TypedMedia(galleryImagesList).Where(x => x != null);
Check if Folder or Image is selected
Is there a way to check if a folder or image has been selected by a media picker? It seems to return just the node id either way?
Here's what I'm doing:
Well I've got that sorted. But now I'm running into a weird issue where if I don't include the line break before the "if" statment, I get a cs103 error?
is working on a reply...