Is there a way to get all items where a certain template appears in its template inheritance?
Say I want to get all items where /sitecore/Templates/Common/Sections/Search
appears in that inheritance tree.
Ultimately, what I want to do is get all items in Sitecore that contain a certain field. I tried achieving this with a Sitecore query (/sitecore/templates//*[contains(@__Base template,'{C8615DF9-65D1-4529-859F-9ABB4DA977B8}')]
), however, this only returns items that directly inherit from the specified template.
This doesn't give me complete coverage so it seems that I would need something that works recursively...