Sitecore PowerShell Extensions
Slack
YouTube
Stack Exchange
Donate
Search…
Introduction
Disclaimer
Installation
Training
Community
Interfaces
Working with Items
Modules
Remoting
Security
Releases
Troubleshooting
Code Snippets
Appendix
Common
Indexing
Packaging
Presentation
Add-PlaceholderSetting
Add-Rendering
Get-Layout
Get-LayoutDevice
Get-PlaceholderSetting
Get-Rendering
Get-RenderingParameter
Merge-Layout
New-PlaceholderSetting
New-Rendering
Remove-PlaceholderSetting
Remove-Rendering
Remove-RenderingParameter
Reset-Layout
Set-Layout
Set-Rendering
Set-RenderingParameter
Switch-Rendering
Provider
Security
Session
Powered By
GitBook
Merge-Layout
The Merge-Layout command takes all the layout information stored in the FinalLayout field and merges into the SharedLayout field. The FinalLayout field is reset after the merge completes.
Syntax
1
Merge-Layout [-Item] <Item> [-Language <String[]>]
2
​
3
Merge-Layout [-Path] <String> [-Language <String[]>]
4
​
5
Merge-Layout -Id <String> [-Database <String>] [-Language <String[]>]
Copied!
Detailed Description
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
Parameters
-Language <String[]>
Aliases
​
Required?
false
Position?
named
Default Value
​
Accept Pipeline Input?
false
Accept Wildcard Characters?
false
-Item <Item>
Aliases
​
Required?
true
Position?
1
Default Value
​
Accept Pipeline Input?
true (ByValue, ByPropertyName)
Accept Wildcard Characters?
false
-Path <String>
Aliases
​
Required?
true
Position?
1
Default Value
​
Accept Pipeline Input?
false
Accept Wildcard Characters?
false
-Id <String>
Aliases
​
Required?
true
Position?
named
Default Value
​
Accept Pipeline Input?
false
Accept Wildcard Characters?
false
-Database <String>
Aliases
​
Required?
false
Position?
named
Default Value
​
Accept Pipeline Input?
false
Accept Wildcard Characters?
false
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Sitecore.Data.Items.Item
Notes
Help Author: Adam Najmanowicz, Michael West
Examples
EXAMPLE 1
The following retrieves all pages under home and merges the layout.
1
Get-ChildItem master:\content\Showcase\int\home -Recurse | Merge-Layout
Copied!
Related Topics
​
https://github.com/SitecorePowerShell/Console/
​
Add-Rendering
​
​
New-Rendering
​
​
Set-Rendering
​
​
Get-Rendering
​
​
Get-LayoutDevice
​
​
Remove-Rendering
​
​
Get-Layout
​
​
Reset-Layout
​
Previous
Get-RenderingParameter
Next
New-PlaceholderSetting
Last modified
2yr ago
Export as PDF
Copy link
Contents
Syntax
Detailed Description
Parameters
-Language <String[]>
-Item <Item>
-Path <String>
-Id <String>
-Database <String>
Inputs
Notes
Examples
EXAMPLE 1
Related Topics