This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Get All Renderings for an Item. This script was used to analyze an item’s legacy renderings, map them with new XM cloud renderings (components), and map fields. | |
| $item = Get-Item -Path $path -Version "latest" | |
| $resultObj = @() | |
| $defaultLayout = Get-LayoutDevice"Default" | |
| Get-Rendering -Item $item -Device $defaultLayout -FinalLayout | ForEach{ | |
| $renderingItem = Get-Item -Path master: -ID $_.ItemID | |
| $Obj = @{ | |
| RenderingName = $renderingItem.Name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| Generic Page data extraction | |
| .DESCRIPTION | |
| Gets Sitecore Items from legacy database and extracts field values. | |
| List could be exported to csv by OOTB feature of List View in SPE. | |
| .NOTES | |
| Akash Borkar |