Matthew Alexandros
06/24/2024, 12:29 PMLewis Heaton
06/24/2024, 12:43 PMvar targetId = 1234;
var multiNodeProp = CurrentPage?.Value<IEnumerable<IPublishedContent>>("alias");
var targetPage = multiNodeProp?.FirstOrDefault(x => x.Id.Equals(targetId));
The above should give you what i think youre after, targetId needs to be updated to your actual ID, "alias" needs updating to your alias of the multinode treepicker alias.
If targetPage is null, nothing was found under the targetId, if its populated, it will be the IPublishedContent of the page by targetIdLewis Heaton
06/24/2024, 12:43 PMLewis Heaton
06/24/2024, 12:45 PMMatthew Alexandros
06/24/2024, 12:46 PMMatthew Alexandros
06/24/2024, 12:53 PMLewis Heaton
06/24/2024, 1:01 PMMatthew Alexandros
06/24/2024, 9:18 PMLewis Heaton
06/25/2024, 9:06 AMMatthew Alexandros
06/25/2024, 9:16 AMMatthew Alexandros
06/25/2024, 9:17 AMMatthew Alexandros
06/25/2024, 10:09 AMLewis Heaton
06/25/2024, 11:00 AMMatthew Alexandros
06/25/2024, 11:00 AMMatthew Alexandros
06/25/2024, 11:07 AM.Where(x => x?.Value<IEnumerable<IPublishedContent>>("primaryAuthor")?.Any(y => y.Id.Equals(authorID)) ?? false)