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...
Ronan Dowling
Jan 17, 2020Copper Contributor
Thanks 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..
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 Marshall
Jan 17, 2020Iron Contributor
Have 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..
- Beau CameronJan 23, 2020MVP
Ronan Dowling Your 3rd site script posted doesn't appear to be right. "SetOnquicklaunch" is not a verb for site designs.
The 2nd site script (first on your second post) appears to be correct. Can you tell us what you mean by it doesn't seem to be working?