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
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.
The MNTP values should just be a comma separated list of NodeIds, i.e
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.
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.
string selectedItems = "umb://document/217f4677b69140958c8951eb3d3638f9,umb://document/d44a409e4f14416fb862356dd38cc7ac,umb://document/52595f172a934995ab0935087a012c6b"
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.
string UDI = Udi.Create(Constants.UdiEntityType.Document, node.GetKey()).ToString();
Hope this helps someone.
Do you have any idea if it has been changed in Umbraco 8 as well?
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted