Get all child items under either Sitecore template A or template B
sitecore, templates
Solution
You can use logical operator like `or`:
/*[@@templatename='Sub Page Top Level' or @@templatename='Sub Page Top Level Custom']
Problem
Is there a way to target all child pages under two templates? As in, if template name is "A" or if template name is "B", get the children? This is what I have, and it only targets one template right now but I want to add some sort of or to it so I can get the child items of another: ``` Item ContentGroup = CurrentItem.Axes.SelectSingleItem(@"child::*[@@templatename='Section Page']/*[@@templatename='Sub Page Top Level']"); ``` I went to get all child items for templates with the name "Sub Page Top Level" OR "Sub Page Top Level Custom." Is there a way to do this without too much trouble?