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
Hi all, I'm trying to create a featured content section where a user can select a a piece of content which will then display the title of the content and the content description which is a text area data type.
@inherits Umbraco.Web.Macros.PartialViewMacroPage @{ var multiUrlPickerDyn = CurrentPage.highlightedContent; if (multiUrlPickerDyn.Any()) { <div class="popular"> <section> <header> <h2>Highlighted content</h2> </header> <ul class="nav"> @foreach (var item in multiUrlPickerDyn) { <li> <a href="@item.Url"> @item.Name @item.contentDescription </a> <a> </a> </li> } </ul> </section> </div> } }
I can access @item.Name but I can't access contentDescription as it wont allow me to, does anybody have any idea how I could do this?
Thanks,
David
Have you tried something like this?
@item.GetPropertyValue("contentDescription")
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Can't access a a property of the Document Type when using MultiPicker
Hi all, I'm trying to create a featured content section where a user can select a a piece of content which will then display the title of the content and the content description which is a text area data type.
I can access @item.Name but I can't access contentDescription as it wont allow me to, does anybody have any idea how I could do this?
Thanks,
David
Have you tried something like this?
@item.GetPropertyValue("contentDescription")
is working on a reply...