We have moved to GitHub Issues
Created by Nemanja Stankovic 14 May 2017, 14:22:51 Updated by Nigel Morris 14 Jun 2017, 09:50:12
I have a document type where one of the properties is Umbraco.MultiNodeTreePicker2. When I try to read ids of picked nodes, like I did up until version 7.6, value that I get is: System.Collections.Generic.List`1[Umbraco.Core.Models.IPublishedContent].
When I try to convert it to <string> or <int> I always get empty values. I tried to extract and convert this in every way possible and I'm still stuck.
I tried the same thing with obsolete Umbraco.MultiNodeTreePicker. Result is the same. I also tested with working code on 7.5.13 and upgraded to 7.6.1. It stopped working after upgrade.
I read on your blog that pickers are modified from version 7.6, so how do you extract values in these new versions?
It's not a list of string or int, it's a list of IPublishedContent. See the docs here: https://our.umbraco.org/documentation/Getting-Started/Backoffice/Property-Editors/Built-in-Property-Editors/Multinode-Treepicker2
Thank you very much! Apologies for the misunderstanding.
Is it possible to add the old (Obsolete) Umbraco.MediaPicker & Umbraco.MultiNodeTreePicker to the property editor in Data Types and how can this be done?
Backwards Compatible: True
Affected versions: 7.6.1
Due in version: