Returns the item template and its base templates.
Get-ItemTemplate [-Item] <Item> [-Recurse]
Get-ItemTemplate [-Path] <String> [-Recurse]
Get-ItemTemplate -Id <String> [-Database <String>] [-Recurse]
Detailed Description
The Get-ItemTemplate command returns the item template and its base templates.
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
-Recurse <SwitchParameter>
Return the template the item is based on and all of its base templates.
Accept Wildcard Characters?
The item to be analysed.
true (ByValue, ByPropertyName)
Accept Wildcard Characters?
Path to the item to be analysed.
Accept Wildcard Characters?
Id of the item to be analysed.
Accept Wildcard Characters?
-Database <String>
Database containing the item to be analysed - required if item is specified with Id.
Accept Wildcard Characters?
The input type is the type of the objects that you can pipe to the cmdlet.
The output type is the type of the objects that the cmdlet emits.
Sitecore.Data.Items.TemplateItem
Help Author: Adam Najmanowicz, Michael West
Get template of /sitecore/conent/home item
Get template of /sitecore/conent/home item and all of the templates its template is based on then format it to only show the template name, path and Key