We got the requirement to create report of all the items which are accessed by URL i.e. report of all page items.
A simple solution, for this, is to check is rendering exist on the an item or not?
If rendering exists, it means layout and components are assigned on that item. If rendering is empty, it means no layout or no component exists on that item.
You can write a C# code for generating such report but I think PowerShell is the best way to do this.
Here is the one line script for the same
With this one line you can imagine the power of PowerShell.
I strongly recommend to brush up your scripting skill.
A simple solution, for this, is to check is rendering exist on the an item or not?
If rendering exists, it means layout and components are assigned on that item. If rendering is empty, it means no layout or no component exists on that item.
You can write a C# code for generating such report but I think PowerShell is the best way to do this.
Here is the one line script for the same
Get-childItem -Path "master:\sitecore\content\home" -Recurse
| Where-Object { ($_.__Renderings -ne "") }
| Show-ListView -Property id, name, itempath
With this one line you can imagine the power of PowerShell.
I strongly recommend to brush up your scripting skill.