Home >Tips > SharePoint Online from Scratch > Show the full SharePoint Web Designer Galleries kalmstrom.com site map icon Site map  

Show SharePoint Web Designer Galleries

A SharePoint Online tutorial by Peter Kalmström

SharePoint iconThe SharePoint Web Designer Galleries
is where you manage all reusable components in a SharePoint site collection, like data containers, templates, layouts and solutions.

The galleries in the image below are by default visible
in SharePoint on-premises. They are also displayed in the  SharePoint Online Home site, and in classic Team sites and modern Team sites without a group.

In the sites that users can create from the SharePoint start page, only the two first galleries in the image below are visible.
SharePoint Web Designer Galleries

The reason for these differences is that scripting is not allowed in the user created sites. It can however be allowed with a PowerShell script.

(If you need a Group Team site with the full Web Designer Galleries, there is an alternative: Create a classic Team site from the SharePoint Admin center and then add a new Microsoft 365 Group to it.)

In the demo below, Peter Kalmström, CEO and Systems Designer of kalmstrom.com Business Solutions, shows how to allow custom script in a modern site. You must be a SharePoint administrator to perform the steps.

Set with a PowerShell script

PowerShell iconIf you are used to PowerShell and already have installed the SharePoint Online Management Shell and set up a connection to your Office 365, you only have to perform steps 4 and 5 below.

If are not used to PowerShell, there are some preparations to do before you can run the script. Peter shows the steps, and he also points to a Microsoft page.

Refer to our tips articles and the book PowerShell with SharePoint from Scratch for more detailed information on how to get started with PowerShell.

You need to:
  1. Run PowerShell ISE on your computer as an administrator.
  2. Set the execution policy.
  3. Install the SharePoint Online Management Shell, either with the download link at the Microsoft page or by running this script:
    Install-Module -Name Microsoft.Online.SharePoint.PowerShell
  4. Connect to the SharePoint Admin center. Peter stores his credentials in a variable, so that he easily can use it again.
  5. Run this script. Use the URL to the site where you want to allow custom script.
    Set-SPOsite <SiteURL> -DenyAddAndCustomizePages 0
 




back icon next icon

Products Buy FAQ Services Tips Books Contact About Us Tools

Security and integrity

Copyright  Kalmstrom Enterprises AB  All rights reserved