I have been looking into that, but I can't seem to make it work.
This is what I currently have.
@{
var linkNodes = Model.Value<IEnumerable<IPublishedContent>>("linkNodes");
foreach (var linkNode in linkNodes)
{
var link = linkNode.Value<Link>("navLink");
<a href="#" target="@link.Target">@linkNode.Name</a>
}
URL Picker values
I have previously worked a lot in Umbraco 7, but for the last 4-5 years, I have been working on different Linux environments.
Currently, I am working on a Umbraco project, which is nice. However, I am a bit rusty.
I have a document with a Multinode Treepicker, that only allows items of one type: Link.
The Link document has a mandatory URL Picker with a maximum of 1 item.
I can loop through the Moltinode Treepicker and write the item properties. But I am struggling to get the URL Picker values from the item.
Any help will be appreciated.
Kind regards Morten
Hey Morten
If you are using the Multi URL picker then you can find examples on how to get values from the property editor here
https://our.umbraco.com/documentation/getting-started/backoffice/property-editors/built-in-property-editors/Multi-Url-Picker/
Hope this helps
/Dennis
I have been looking into that, but I can't seem to make it work.
This is what I currently have.
}
Without the link part I do get the nodes printed.
I do mine like this
Don't know if that helps at all
My initial code was like this:
I have also tried:
Both throws a runtime error.
I found my error.
I am not sure why I didn't customError mode off earlier.
My document type was also link. Renaming the alias to pageLink my initial code works as expected.
Thanks
is working on a reply...