Reset-ItemField
Resets item fields, specified as either names, fields or template fields.
Syntax
Detailed Description
Resets item fields, specified as either names, fields or template fields.
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
Parameters
-IncludeStandardFields <SwitchParameter>
Includes fields that are defined on "Standard template"
Required?
false
Position?
named
Default Value
Accept Pipeline Input?
false
Accept Wildcard Characters?
false
-Name <String[]>
Array of field names to include - supports wildcards.
Required?
false
Position?
named
Default Value
Accept Pipeline Input?
false
Accept Wildcard Characters?
false
-Item <Item>
The item to be analysed.
Required?
true
Position?
1
Default Value
Accept Pipeline Input?
true (ByValue, ByPropertyName)
Accept Wildcard Characters?
false
-Path <String>
Path to the item to be analysed.
Required?
true
Position?
1
Default Value
Accept Pipeline Input?
false
Accept Wildcard Characters?
false
-Id <String>
Id of the item to be analysed.
Required?
true
Position?
named
Default Value
Accept Pipeline Input?
false
Accept Wildcard Characters?
false
-Database <String>
Database containing the item to be reset - can work with Language parameter to narrow the publication scope.
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
Reset all item fields, excluding standard fields.
EXAMPLE 2
Reset all item fields, including standard fields.
EXAMPLE 3
Reset all item fields with names beginning with "a", excluding standard fields.
EXAMPLE 4
The following resets one of the Standard Values fields for all versions and languages.
Related Topics
Last updated