Add-BaseTemplate
Add one or more base templates to a template item.
Syntax
Add-BaseTemplate -Item <Item> -TemplateItem <TemplateItem[]>
Add-BaseTemplate -Item <Item> -Template <String[]>
Add-BaseTemplate -Path <String> -TemplateItem <TemplateItem[]>
Add-BaseTemplate -Path <String> -Template <String[]>
Add-BaseTemplate -Id <String> -TemplateItem <TemplateItem[]>
Add-BaseTemplate -Id <String> -Template <String[]>
Add-BaseTemplate [-Database <String>]
Detailed Description
The Add-BaseTemplate command adds one or more base templates to a template item.
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
Parameters
-Item <Item>
The item to add the base template to.
Required?
true
Position?
named
Default Value
Accept Pipeline Input?
true (ByValue)
Accept Wildcard Characters?
false
-Path <String>
Path to the item to add the base template to.
Required?
true
Position?
named
Default Value
Accept Pipeline Input?
false
Accept Wildcard Characters?
false
-Id <String>
Id of the item to add the base template to.
Required?
true
Position?
named
Default Value
Accept Pipeline Input?
false
Accept Wildcard Characters?
false
-TemplateItem <TemplateItem[]>
Sitecore item or list of items of base templates to add.
Required?
true
Position?
named
Default Value
Accept Pipeline Input?
false
Accept Wildcard Characters?
false
-Template <String[]>
Path representing the template item to add as a base template. This must be of the same database as the item to be altered. Note that this parameter only supports a single template.
Required?
true
Position?
named
Default Value
Accept Pipeline Input?
false
Accept Wildcard Characters?
false
-Database <String>
Database containing the item to add the base template to - required if item is specified with Id.
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, Alex Washtell
Examples
EXAMPLE 1
Add base template of /sitecore/templates/User Defined/BaseTemplate to a template, using a path.
EXAMPLE 2
Add multiple base templates to a template, using items.
Related Topics
Last updated