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.
The item to be analysed.
Path to the item to be analysed.
Id of the item to be analysed.
-Database <String>
Database containing the item to be analysed - required if item is specified with Id.
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