Reset-Layout

Resets the SharedLayout or FinalLayout field for the specified item.

Syntax

Reset-Layout [-Item] <Item> [-FinalLayout] [-Language <String[]>]

Reset-Layout [-Path] <String> [-FinalLayout] [-Language <String[]>]

Reset-Layout -Id <String> [-Database <String>] [-FinalLayout] [-Language <String[]>]

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.

-Language <String[]>

-Item <Item>

The item to be processed.

-Path <String>

Path to the item to be processed.

-Id <String>

Id of the item to be processed.

-Database <String>

Database containing the item to be processed.

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.

Reset-Layout -Path master:\content\home

Last updated