Created
August 13, 2015 14:33
-
-
Save AlexKasaku/b46cca001da5560ca013 to your computer and use it in GitHub Desktop.
Change template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$master = [Sitecore.Configuration.Factory]::GetDatabase("master"); | |
$entryTemplate = $master.Templates["User Defined/xxx/Folders/Components Folder"]; | |
Get-ChildItem -recurse | where Name -eq "Components" | % { $_.ChangeTemplate($entryTemplate) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment