I'm trying to add a theme for a team site. New theme i want add by Json and power shell. I have limitations to test my solution I need to ask someone to upload. The new theme should change the structure of the site in the following ways.
Delete from navigation on the left side:
- Conversations
- Documents
- Pages
- Site contents
- Project
- Notebook
Add to navigation on the left side
- Client Documents (type: document library, after click on the menu, a list of "General files" should appear)
1a) Opportunities(type: document library, sub link of Client Documents) 1b) Project(type: document library, sub link of Client Documents)
I'm doing this for the 1st time and can't test it in small steps . My main problem is to imagine if my Json structure will create such structure as I described. I was using the documentation: https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-json-schema Unfortunately I don't know how to connect document library to make it look like "Client Documents" is a parent of "Opportunities" and "Project" I think I should use something with "parentDisplayName" but I don't know if I can use it for createSPList ?
{
"verb": "removeNavLink",
"displayName": "Conversations",
"isWebRelative": true
},
{
"verb": "removeNavLink",
"displayName": "Documents",
"isWebRelative": true
},
{
"verb": "removeNavLink",
"displayName": "Pages",
"isWebRelative": true
},
{
"verb": "removeNavLink",
"displayName": "Site contents",
"isWebRelative": true
},
{
"verb": "removeNavLink",
"displayName": "Project",
"isWebRelative": true
},
{
"verb": "removeNavLink",
"displayName": "Notebook",
"isWebRelative": true
},
{
"verb": "createSPList",
"listName": "Client Documents",
"templateType": 101
},
{
"verb": "createSPList",
"listName": "Opportunities",
"templateType": 101
},
{
"verb": "createSPList",
"listName": "Project",
"templateType": 101
}