milehighnative
09/18/2024, 6:16 PMvar newsselection = Umbraco.Content(Guid.Parse("xxxx-xxxxx-xxxxx(actual guid here)"))
.DescendantsOfType("PressRelease")
.Where(x => x.IsVisible());
I guess my question is, can I add another where statement here which would not pull in pages that are listed as no index? I have tried a couple different ways but I'm not sure of the syntax to use here. We used to have a boolean option for hide from XML sitemap and that was easy just using:
.Where(x => x.Value<bool>("HideFromXmlSitemap") == false);
The structure has been updated to use the contentment data list but I'm just not familiar with how to work with it. I'm hoping it's a simple syntax I can use, any ideas? Thank you in advance!!!
https://cdn.discordapp.com/attachments/1286027959404331061/1286027959660052632/Screenshot_2024-09-18_at_11.54.12_AM.png?ex=66ec6a5e&is=66eb18de&hm=fd553c3a20edebc87f949192e48fe091e54f1fe9a2a7a43f72ad7a57863b06b2&
https://cdn.discordapp.com/attachments/1286027959404331061/1286027959991406622/Screenshot_2024-09-18_at_11.55.38_AM.png?ex=66ec6a5e&is=66eb18de&hm=c95adcec4631e2e3233203e88e7c2b68feb0bb425a3bc93be0bf11dcc3b1f5d5&