Can anyone explain what's going on here with this Sitecore Power Shell script?
We have 2 websites set up on 1 Sitecore
instance, they're as follows:
/sitecore/content/siteA
/sitecore/content/siteB
The below query returns all items under /sitecore/content/siteA/
$contentsToUpdate = Get-Item master: -Query "/sitecore/content/siteA//*"
The below query returns all items under /sitecore/content/siteB/
$contentsToUpdate = Get-Item master: -Query "/sitecore/content/siteB//*"
The line below seems to return all items under /sitecore/content/siteA/ but nothing from siteB.
$contentsToUpdate = Get-Item master: -Query "/sitecore/content//*"
I was hoping and expecting that the third example would give me pages under both /siteA/ and /siteB/ but it doesn't seem to be doing that despite all 3 of the commands appearing to access sub-directories fine.
Cheers,
Dan