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
Hello all, I'm quite new to Umbraco, I've got around to create my document types and displaying the fields in my template. I am now facing an issue displaying the links inside contentpicker2 as the value returned is always null. This is my code:
IEnumerable<IPublishedContent> links = Umbraco.AssignedContentItem.GetPropertyValue<IEnumerable<IPublishedContent>>("footerQuickLinks", true); if (links != null && links.ToList().Count > 0) { <ul class="footer-quick-links-4 white"> @foreach (RelatedLink link in links) { <li> <a href="@link.Link" target="=@(link.NewWindow ? "_blank" : null)"> <i class="fa fa-angle-right"></i>@link.Caption </a> </li> } </ul> }
PS: I'm using Umbraco version 7.10.0
Hi Claude,
can you show us your document type setup and content node?
Thanks!
/Michaël
Is this what you asked for?
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
contentpicker2 null
Hello all, I'm quite new to Umbraco, I've got around to create my document types and displaying the fields in my template. I am now facing an issue displaying the links inside contentpicker2 as the value returned is always null. This is my code:
PS: I'm using Umbraco version 7.10.0
Hi Claude,
can you show us your document type setup and content node?
Thanks!
/Michaël
Is this what you asked for?

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.