How to Make and Use SharePoint Templates

In this SharePoint Training video, our focus will be on SharePoint templates, encompassing various aspects such as site, page, news post, and list templates. We’ll explore the versatility and functionality of these templates, demonstrating how they can significantly enhance your SharePoint experience.

As an added bonus, we’ll delve into an advanced method towards the end of the video. You’ll gain valuable insights into creating customized site templates through PowerShell, allowing you to tailor SharePoint to your specific needs and preferences.

Resources

Download the SharePoint Online Management Shell:
https://www.microsoft.com/en-us/download/details.aspx?id=35588

How to make list templates:
https://learn.microsoft.com/en-us/sharepoint/lists-custom-template

More JSON Code:
https://learn.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-json-schema

PowerShell commands:

1) Connect to SPOService

Connect-SPOService -url https://mysite-admin.sharepoint.com

2) Paste JSON code

$site = '

{

  "$schema": "https://developer.microsoft.com/json-schemas/sp/site-design-script-actions.schema.json",

  "actions": [

    {

      "verb": "applyTheme",

      "themeName": "Contoso Theme"

    },

    {

      "verb": "createSPList",

      "listName": "Documents",

      "templateType": 101

    },

    {

      "verb": "addNavLink",

      "displayName": "Custom Link",

      "url": "https://example.com"

    }

  ],

  "version": 1

}

'

3) Add SiteScript

Add-SPOSiteScript -Title "Template Name" -Content $site

4) Add SiteDesign

Add-SPOSiteDesign -Title "Template Name" -WebTemplate "64" -SiteScripts "site-script-id"

John Gleave

John Gleave has been a researcher, content writer, and senior editor at Business Tech Planet since 2022. John was formerly a data analyst and web designer with expertise in several programming languages, such as JavaScript, JQuery, PHP, CSS, SQL, and more! With a passion for writing and technology, he has now focused his skills on crafting tech guides for BTP. You can connect with John on LinkedIn.

Recent Posts