Hi,
What is the most straightforward way to get a count of all topics in our Tridion Docs repo?
I am assuming I can do so with ISHRemote but not sure how to approach the script.
Any feedback appreciated,
Regards,
Ann
![3 stars click here to know more emoji](https://community.rws.com/cfs-filesystemfile/__key/widgetfiles/70eb79f7675b42078f78355560839784-d/3star.png?_=638586179351015304)
Hi,
What is the most straightforward way to get a count of all topics in our Tridion Docs repo?
I am assuming I can do so with ISHRemote but not sure how to approach the script.
Any feedback appreciated,
Regards,
Ann
Hi Ann,
A bit curious on why you are looking for the numbers. Just a one-off, or would you run this 'count' weekly, monthly, yearly, etc. Any numbers you are interested in as it could inspire/enrich our statistics epic.
Genericly I can answer the below, remember that a database of 1 gigabyte acts differently than a 2 terrabyte one,...
$imageCount = 0 $xmlCount = 0 Get-IshFolder -FolderPath "General\Myfolder" -FolderTypeFilter @("ISHIllustration", "ISHModule", "ISHMasterDoc", "ISHLibrary") -Recurse | Get-IshFolderContent -VersionFilter "" | ForEach-Object -Process { if ($_.IshType -in @("ISHIllustration")) { ++$imageCount } if ($_.IshType -in @("ISHModule", "ISHMasterDoc", "ISHLibrary")) { ++$xmlCount } } Write-Host ("imageCount["+$imageCount+"]") Write-Host ("xmlCount["+$xmlCount+"]")
Best wishes,
Dave
Hi Ann,
A bit curious on why you are looking for the numbers. Just a one-off, or would you run this 'count' weekly, monthly, yearly, etc. Any numbers you are interested in as it could inspire/enrich our statistics epic.
Genericly I can answer the below, remember that a database of 1 gigabyte acts differently than a 2 terrabyte one,...
$imageCount = 0 $xmlCount = 0 Get-IshFolder -FolderPath "General\Myfolder" -FolderTypeFilter @("ISHIllustration", "ISHModule", "ISHMasterDoc", "ISHLibrary") -Recurse | Get-IshFolderContent -VersionFilter "" | ForEach-Object -Process { if ($_.IshType -in @("ISHIllustration")) { ++$imageCount } if ($_.IshType -in @("ISHModule", "ISHMasterDoc", "ISHLibrary")) { ++$xmlCount } } Write-Host ("imageCount["+$imageCount+"]") Write-Host ("xmlCount["+$xmlCount+"]")
Best wishes,
Dave