pnp / sp-dev-site-scripts

Repository for sample SharePoint site designs and site scripts
https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-overview
MIT License
160 stars 68 forks source link

The IsDefault switch on Add-SPOSiteDesign does not work #14

Closed spplante closed 6 years ago

spplante commented 6 years ago

Category

Expected or Desired Behavior

As documented here, it should be possible to add site scripts to a default site design (team site/communication site) by providing the IsDefault switch to the Add-SPOSiteDesign command.

Observed Behavior

No matter how I try to use the Add-SPOSiteDesign command with the IsDefault switch, a new site design always appears in the UI instead of being applied to the default site design. When clicking on the +Create site button in the UI and then on the Team Site tile, I get a dropdown asking me to choose a design between Team Site and whatever the design I just created

Steps to Reproduce

My SharePoint Online Management Shell is currently at version 16.0.7813.1200 (although the PowerShell module does display 16.0.7813.0)

spplante commented 6 years ago

After some further testing, it turns out that the site script DOES work on the out of the box Team Site site design. The issue seems like a display issue that makes the site design appear in the dropdown even if it has it's IsDefault property flagged to true.

I am pretty confident that this is not a normal behavior, I don't see why Add-SPOSiteDesign applied with the IsDefault switch should make available a NEW site design choice through the UI, on top of modifying the original one.

spplante commented 6 years ago

Moved to https://github.com/SharePoint/sp-dev-docs/issues/2236

pdl5p commented 6 years ago

This also happens when registering site designs using the rest api.