Quantcast
Channel: Developing Apps for SharePoint 2013 forum
Viewing all articles
Browse latest Browse all 8089

Issue : Sub sites inherit Site templates from parent site -Office 365 Using SharePoint online management shell

$
0
0

Requirement:

I would like to set  preferred templates for the sub site for the publishing site.I am able to set the same using the OOTB feature .From the sub site when i try to create a sub site i see all the templates. But would like to show only the preferred site templates i set at the site collection level. I do not want to show the templates which are not set as the preferred template at the parent site.

Problem:

When I do the same thing through SharePoint Online management shell (SharePoint Online), I can set the preferred templates at site collection level. Sub sites are not inheriting the site templates from the parent site. In the sub site however “Sub sites inherit site templates from parent site” option is set whenever I click on OK then only I can see the preferred templates as parent.

What we tried so far:

Used below commands to inherit the site templates from the parent(tried at both site collection and sub site level).

$website.AllProperties["__InheritWebTemplates"]="True"

$context.Load($website.AllProperties)

$context.Load($website)

$context.ExecuteQuery()

Please help me in resolving this issue.

Thanks in Advance!



Viewing all articles
Browse latest Browse all 8089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>