Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Any ways of making this work recursive in my template?
@if(Model.Content.HasValue("kologo")){ var mediaItem = Umbraco.TypedMedia(Model.Content.GetPropertyValue("kologo")); <img src="@mediaItem.GetPropertyValue("umbracoFile")" alt="@mediaItem.GetPropertyValue("Name")"/> }
Hi Brian,
Yes and it's wonderfully easy:
@if (Model.Content.HasValue("kologo", true)) { var mediaItem = Umbraco.TypedMedia(Model.Content.GetPropertyValue("kologo", true)); <img src="@mediaItem.GetPropertyValue("umbracoFile")" alt="@mediaItem.GetPropertyValue("Name")" /> }
Jeavon
I was on the right track - always good to know :)
Thanks (again)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Making it recursive?
Any ways of making this work recursive in my template?
Hi Brian,
Yes and it's wonderfully easy:
Jeavon
I was on the right track - always good to know :)
Thanks (again)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.