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
Reset-Layout
Resets the SharedLayout or FinalLayout field for the specified item.
Syntax
1
Reset-Layout
[
-
Item
]
<Item>
[
-
FinalLayout
]
[
-
Language <String
[]
>
]
2
​
3
Reset-Layout
[
-
Path
]
<String>
[
-
FinalLayout
]
[
-
Language <String
[]
>
]
4
​
5
Reset-Layout
-
Id <String>
[
-
Database <String>
]
[
-
FinalLayout
]
[
-
Language <String
[]
>
]
Copied!
Detailed Description
The Reset-Layout command resets the layout for the specified item.
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
Parameters
-FinalLayout <SwitchParameter>
Targets the Final Layout. If not provided, the Shared Layout will be targeted. Applies to Sitecore 8.0 and higher only.
Aliases
Text
Required?
false
Position?
named
Default Value
​
Accept Pipeline Input?
false
Accept Wildcard Characters?
false
-Language <String[]>
Aliases
Text
Required?
false
Position?
named
Default Value
​
Accept Pipeline Input?
false
Accept Wildcard Characters?
false
-Item <Item>
The item to be processed.
Aliases
Text
Required?
true
Position?
1
Default Value
​
Accept Pipeline Input?
true (ByValue, ByPropertyName)
Accept Wildcard Characters?
false
-Path <String>
Path to the item to be processed.
Aliases
Text
Required?
true
Position?
1
Default Value
​
Accept Pipeline Input?
false
Accept Wildcard Characters?
false
-Id <String>
Id of the item to be processed.
Aliases
Text
Required?
true
Position?
named
Default Value
​
Accept Pipeline Input?
false
Accept Wildcard Characters?
false
-Database <String>
Database containing the item to be processed.
Aliases
Text
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
Outputs
The output type is the type of the objects that the cmdlet emits.
None.
Notes
Help Author: Adam Najmanowicz, Michael West, Alex Washtell
Examples
EXAMPLE 1
The following resets the layout information on the SharedLayout.
1
Reset-Layout
-
Path master:\content\home
Copied!
Related Topics
​
https://github.com/SitecorePowerShell/Console/
​
​
Add-Rendering
​
​
New-Rendering
​
​
Set-Rendering
​
​
Get-Rendering
​
​
Get-LayoutDevice
​
​
Remove-Rendering
​
​
Set-Layout
​
​
Get-Layout
​
Previous
Remove-RenderingParameter
Next
Set-Layout
Last modified
10d ago
Export as PDF
Copy link
Contents
Syntax
Detailed Description
Parameters
-FinalLayout <SwitchParameter>
-Language <String[]>
-Item <Item>
-Path <String>
-Id <String>
-Database <String>
Inputs
Outputs
Notes
Examples
EXAMPLE 1
Related Topics