The Id's are in the result, but this method is returning xml. as well,
I'm using umbraco 6 - I don't really want to have to start extracting the number from the string, or covert it in to a xml document....
is there a way I can just force umbraco to give me CSV so in this example I get
I only needed the id's so changing the data-type definition worked quite well for me.
I was aware of the GetPropertyValue<> conversion thing, but in my mind I had never thought about coveting to IPublished content, I just used it to do things like bool, and int, but yes your right!
That's one for the tool box... ill be using that in future!
Getting Id's from Multinode Tree Picker
I'm trying to get the id's of the nodes selected using the Multinode Tree Picker
Currently this is what I have
Result ends up being.
The Id's are in the result, but this method is returning xml. as well, I'm using umbraco 6 - I don't really want to have to start extracting the number from the string, or covert it in to a xml document....
is there a way I can just force umbraco to give me CSV so in this example I get
2202, 2203
?
Thanks Ayo
Found the answer to my question so I just thoght I'd post the answer just in case someone else has the same problem.
On the definition of my Multinode Tree Picker, there is a option of how the values are stored.
If you select CSV - problem solved.
See screen shot
Ayo,
Umbraco core property convertors are your friend https://our.umbraco.org/projects/developer-tools/umbraco-core-property-value-converters/
So you can then do
It will convert everything for you.
Regards
Ismail
I only needed the id's so changing the data-type definition worked quite well for me.
I was aware of the GetPropertyValue<> conversion thing, but in my mind I had never thought about coveting to IPublished content, I just used it to do things like bool, and int, but yes your right!
That's one for the tool box... ill be using that in future!
Thanks Ayo
Is there any way to get the Ids without getting the IPublishedContent objects?
I would like to do something like this, but this does not work for me:
is working on a reply...