I'm using Umbraco 7.2.4 and I've created a data type of multi node tree picker and have associated this to relative content. In the content tree i can use the Tree Picker to select one or more areas of content so all is well to this point.
But I'm struggling to get the data back out in Razor (what I'm trrying to return is comma separed list of the selected nodes) but I seem to get to the data.
I would have thought that @CurrentPage.GetProperty("tutorSelector") would work but nothing is being returned.
Getting Value from Multi Node Tree Picker
Hi all,
I'm using Umbraco 7.2.4 and I've created a data type of multi node tree picker and have associated this to relative content. In the content tree i can use the Tree Picker to select one or more areas of content so all is well to this point.
But I'm struggling to get the data back out in Razor (what I'm trrying to return is comma separed list of the selected nodes) but I seem to get to the data.
I would have thought that @CurrentPage.GetProperty("tutorSelector") would work but nothing is being returned.
Any help would be greatly appreciated.
Thanks,
craig
Hi Craig,
Take a look at the Razor sample here.
Jeavon
Bloody marvellous!
Thank you very much.
Ps. I love this community!
You're very welcome!
Chief,
How will i get the Tree Picker Node Link page value so that i will put it to the target HREF link template whenever the user clicks the node.
Thanks,
~Jeff~
Hi,
In response to Jeff's question (Albeit one year late), today I was looking for an answer to a similiar question.
For anyone looking for something similar I was able to achieve this via:
Store this as a variable and then use this as your href. If you don't need the first item then you will need to loop through the collection.
Hope this helps someone. Kind Regards,
Lewis
is working on a reply...