After the recent additions of Modern Team sites and Community sites I’ve been missing the option to create new style site collections. Today however I managed to get this to work.
I started by creating a modern sub site from the communication site.
Then I created a new site collection (https:/ /mytenant.sharepoint.com/sites/later) but I didn’t select a starting template. During this post I used /sites/later, but of course the real aim is to do the same at https:/ /mytenant.sharepoint.com.
Then in my communication site I collected all the features that have been enabled:
<br />PS U:\> Get-PnPFeature
Then in my new site collection I enabled all the features that are enabled in the communication sites:
<br />Enable-PnPFeature b77b6484-364e-4356-8c72-1bb55b81c6b3
I must say now I was really surprised as I visited my new site collection:
Ok, this doesn’t give me a full communication site but at least I’ve got my new modern look and feel on the site.
PS U:\> Get-PnPTenantSite
Url Template Lcid
— ——– —-
https:/ /mytenant.sharepoint.com/ EHS#1 1033
https:/ /mytenant.sharepoint.com/portals/hub POINTPUBLISHINGHUB#0 1033
https:/ /mytenant.sharepoint.com/search SRCHCEN#0 1033
https:/ /mytenant.sharepoint.com/sites/Apps APPCATALOG#0 1033
https:/ /mytenant.sharepoint.com/sites/later 1033
https:/ /mytenant.sharepoint.com/sites/publishtest BLANKINTERNETCONTAINER#0 1033
https:/ /mytenant-my.sharepoint.com/ SPSMSITEHOST#0 1033
So it looks like there is no base template used by my site. Time to run a quick check by extracting the site as a template using PnP PowerShell.
Then when I checked with Get-PnPProvisioningTemplate I found that my Communication site was using the SITEPAGEPUBLISHING#0 as its base template where the new site collection was using STS#-1 as its site template.
So then I tried creating a site collection with the right template first:
<br />New-PnPTenantSite -Title “PowerShellCommSite” -Url /sites/powershellsite -Template SITEPAGEPUBLISHING#0 -Owner firstname.lastname@example.org -TimeZone 0
But that resulted in
New-PnPTenantSite : The web template SITEPAGEPUBLISHING#0 is not available for sites on this tenant.
At line:1 char:1
+ New-PnPTenantSite -Title “PowerShellCommSite” -Url /sites/powershells …
+ CategoryInfo : WriteError: (:) [New-PnPTenantSite], ServerException
+ FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.NewTenantSite
Ok, so I can’t create new sites directly from PowerShell yet.
Removing the left hand navigation
As mentioned in the comments below by Clifton it would be possible to remove the left hand navigation by turning on the Publishing Infrastructure, then remove the links in Site Settings -> Structural Navigation -> Current Navigation.
I’m however not sure if this is a good step, as the publishing features would create old style elements in my new style site collection.
With the above method I ended up with an almost communication site. I can now get users to go to a modern looking root site collection of the tenant at https:/ /mytenant.sharepoint.com without having to direct them to a site collection located in /teams or /sites
I would expect that Microsoft will soon make the root site collection template available for the modern templates, but at least I’ve now got my workaround in place.