I've got the following problem: There is a solution I didn't develop, that creates and configures a new Website. I have to change the Site Template that is used for this. So I changed the template Website and saved it as a Site Template, but the solution doesn't find the Site Template:
The template seems available on all Websites in the Site Collection except for the one SPWeb where the solution searches for it.
When I call GetAvailableWebTemplates([System.UInt32]1031)
on the SPWeb of http://mysitecollection/
, I get:
- all the standard templates
- the old Site Template
- my new Site Template
When I call it on the SPWeb of http://mysitecollection/subweb/
, I get:
- only the old Site Template
How do I copy my new Site Template to this Website? Is there a way in the UI or via PowerShell? I tried to call AllowAllWebTemplates()
on the Website, but to no avail ...