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.
PSST, HEY, YOU
(YEAH, YOU!)
Want in on insightful videos, the latest tech developments, and epic exclusive content? Get all this and more as a member of our mailing list.
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"