Hi does anyone know the data saving format for multi ndoe tree picker, i have problem when i want to programaticly set new value, not chosing from the umbraco cms.
I used to generate the UDI manually by getting the node key(guid) and building up the string. Fortunately a recently found an easier way to generate this key.
Set.value in multi node tree picker
Hi does anyone know the data saving format for multi ndoe tree picker, i have problem when i want to programaticly set new value, not chosing from the umbraco cms.
Hi
The MNTP values should just be a comma separated list of NodeIds, i.e
1032,1042,1039
If you have you're content item , its stored as a string, so you should beable to call
remember to save the via the contentService.
Hi Guys,
Its got a little more complicated recently. I miss the days when you could just pass in a list of Ids.
Unfortunately you now have to pass in a list of UDIs. This is a combination of some document stuff and a formatted guid.
A valid example would look something like this.
I used to generate the UDI manually by getting the node key(guid) and building up the string. Fortunately a recently found an easier way to generate this key.
Hope this helps someone.
Kind Regards
David
Do you have any idea if it has been changed in Umbraco 8 as well?
You can do it in a similar way in Umbraco 8, make sure that you use a real
GuidUdi
by creating it with anew GuidUdi()
In this case i have a string[] with the ID's of the nodes. I can save these to a multinode treepicker by doing this:
Another example could be something like:
is working on a reply...