I have here a sample content. Now I want to get all the Article Template under the Folder.
Sitecore
Content
Folder
Article1
Article2
NewsFolder1
Article3
Article4
NewsFolder2
Article5
I have here a code:
$query = "fast:/sitecore/content/Folder/*[@@TemplateID='{76036F5E-CBCE-46D1-AF0A-4143F9B557AA}']"
$items = Get-Item -Path "master:" -Query $query | Get-ChildItem -rec
$items.Paths.Fullpath
But I will only query the first level under Folder (Article1, Article2, and Article5). Can someone advise me how to include in the result the Articles under the NewsFolders?