I suggest you to go in Umbraco / Developer / Data Types / <your MultiNode-tree-picker> then set CSV in "Data as CSV or XML" option.
Then you will do:
var nodeIdList = Current.GetPropertyValue("<property name>").Split(',');
var dynNodeList = new List<DynamicNode>(nodeIdList.Select(id => new umbraco.MacroEngines.DynamicNode(id)));
How to Convert "Multi-Node Tree Picker" XML to List<DynamicNode>?
A "Multi-Node Tree Picker" returns XML data. How to convert it to List<DynamicNode>.
Any Solution?
which version of umbraco are you using? v4 or v6?
for v6 I would suggest to use csv and use this great package by jeavon Umbraco Core Property Editor Converters
I'm using v4 XML. I need the following conversion:
Can anyone provide solution for this?
I suggest you to go in
Umbraco / Developer / Data Types / <your MultiNode-tree-picker>
then setCSV
in "Data as CSV or XML" option. Then you will do:Hi, I guess if you are using DynamicNode you can't use the Mvc Property editor value converter package Ali mentioned.
However, there are some well tested samples for MNTP to DynamicNode conversion in the documentation here
Jeavon
is working on a reply...