Forum Discussion
Ronan Dowling
Jan 16, 2020Copper Contributor
Modern Sharepoint Site Design - Doc Library Creation with Links!
Hi Folks, I've created a basic Json Script which binds a Modern Site to a HUB. It also adds about seven doc libraries to the site. My issue is I would like these doc libraries to be navigable fro...
Alan Marshall
Jan 16, 2020Iron Contributor
Use this action to add to navigation: https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-json-schema#add-a-navigation-link
If you want to add folders, you will need to call a Flow in the site script and in Flow use the add folder action.
If you want to add folders, you will need to call a Flow in the site script and in Flow use the add folder action.
- Ronan DowlingJan 17, 2020Copper ContributorThanks Alan!
I was trying the following:
{
"verb": "createSPList",
"listName": "PreDeal",
"templateType": 101,
"subactions": [
{
"verb": "setDescription",
"description": "All predeal investment docs located here"
}
]
},
{
"verb": "addNavLink",
"url": "/Lists/PreDeal",
"displayName": "PreDeal",
"isWebRelative": true
},
However it doesn't seem to be working. I could put the full URL in but It would have to adapt to parent url for each site. Which is where I get a bit lost. I've also tried :
{
"verb": "createSPList",
"listName": "PreDeal",
"templateType": 101,
"subactions": [
{
"verb": "setOnquicklaunch",
"Onquicklaunch": "True"
}
]
},
Still having fun. I'll work it out. Thanks for the pointers..- Alan MarshallJan 17, 2020Iron ContributorHave you tried using site designer.io we site? That will create the correct syntax for you.
- Ronan DowlingJan 23, 2020Copper Contributor
Alan MarshallThanks Alan that is an awesome tool I wasn't aware of before. I'm still struggling to get any of the above scripts to work -adding the quick link's. This must be causing others a headache. I notice if I create a new library from the "View All Contents Page" it offers an option to add link to quick links in a tickbox, so the logic must be sitting there somewhere; just beyond my comprehension. I'll let you know if I figure it out. Big thanks for the support..