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
I've got a nested content (products) data type which has a standard content picker (productPicker) which I want to fetch the URL I'm having some issues with fetching the content picker content - it throws a Null even tho I have content. Any ideas what I've done wrong? It's the second foreach that's throwing the error.
var items = Model.Value<IEnumerable<IPublishedElement>>("products");
foreach (var item in items)
foreach (var item2 in item.Value<IEnumerable<IPublishedContent>>("productPicker"))
Is "productPicker" just a regular ContentPicker? or a MultiNode Picker?
If its just a single node picker, then the return type will be simply IPublishedContent
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted