Querying a multinode treepicker control if it contains a value
I am trying to query a list of documents which contain a list of author names stored in a Multinode Treepicker control.
var data = Model.Content.Site().FirstChild("Article").Children("Articles").Where(x => x.IsVisible() && x => x.GetPropertyValue<IEnumerable<string>>("pageAuthors").Contains("Peter Smith")).OrderBy("pageDate desc");
Querying a multinode treepicker control if it contains a value
I am trying to query a list of documents which contain a list of author names stored in a Multinode Treepicker control.
What am I doing wrong? Any suggestions?
Thanks
Hi Andrew
Try this code:
Thanks,
Alex
There is a syntax mistake in your code here:
no need second " x => "
And OrderByDescending I changed a bit
Thanks,
Alex
Many thanks, Alex, I really appreciate your help :)
You are welcome!!!
is working on a reply...