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
I have a multi node tree picker which points to a list of nodes for selecting a category on a node.
I am on the parent node of these nodes and i need to get all children which multi node tree picker selection match a specific string.
razorQuery = Model.Children.Where("Visible && multiNodeTreePickerAlias == @0", myString);
Just wondering if anyone has any advice to offer in how to achieve this as i need to get the name of the node in multi node tree picker. As the alias wont return this.
What version of Umbraco are you using?
I would use code like that :
var ids = Umbraco.AssignedContentItem.GetPropertyValue<string>("multiPickerAlias");
var selectedNames = Umbraco.AssignedContentItem.Children.Where(x => ids.Contains(x.Id.ToString())).Select(selectedChild => selectedChild.Name);
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted