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!
I have a blog and this blog have some labels have a ucomponent with multinodetreepicker I can choose some of them depending on the post. I want to get these labels in C #, and doing a li ul and to show in my frontend .
Any suggestion ?
I' ve got this XML struct:
<tagging> <MultiNodePicker> <nodeId>119683</nodeId> <nodeId>119684</nodeId> </MultiNodePicker> </tagging
And I need to get the names of the nodeID's I tried to use:
@using umbraco.MacroEngines @inherits DynamicNodeContext @if (Model.HasValue("tagging")) { <ul> @foreach (var item in Model.tagging) { var node = Library.NodeById(item.InnerText); if (node.Id != 0) { <li>@node.Name></li> } } </ul> }
but doesn't work, maybe I have written something wrong.
Anyone?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
how can I get in C# the elements from multi node tree picker umbraco
Hello!
I have a blog and this blog have some labels have a ucomponent with multinodetreepicker I can choose some of them depending on the post. I want to get these labels in C #, and doing a li ul and to show in my frontend .
Any suggestion ?
I' ve got this XML struct:
And I need to get the names of the nodeID's I tried to use:
but doesn't work, maybe I have written something wrong.
Anyone?
is working on a reply...