179 lines
27 KiB
JSON
179 lines
27 KiB
JSON
{
|
||
"$schema": "https://developer.microsoft.com/json-schemas/sp/site-design-script-actions.schema.json",
|
||
"actions": [
|
||
{
|
||
"verb": "createSPList",
|
||
"listName": "FAQs",
|
||
"templateType": 100,
|
||
"subactions": [
|
||
{
|
||
"verb": "addSPFieldXml",
|
||
"schemaXml": "<Field ID=\"{fa564e0f-0c70-4ab9-b863-0177e6ddd247}\" Type=\"Text\" Name=\"Title\" DisplayName=\"Question\" Required=\"TRUE\" SourceID=\"http://schemas.microsoft.com/sharepoint/v3\" StaticName=\"Title\" FromBaseType=\"TRUE\" EnforceUniqueValues=\"FALSE\" Indexed=\"FALSE\" MaxLength=\"255\" Sealed=\"FALSE\" />"
|
||
},
|
||
{
|
||
"verb": "addSPFieldXml",
|
||
"schemaXml": "<Field Type=\"Note\" DisplayName=\"Answer\" Required=\"TRUE\" EnforceUniqueValues=\"FALSE\" Indexed=\"FALSE\" NumLines=\"6\" RichText=\"TRUE\" RichTextMode=\"FullHtml\" IsolateStyles=\"TRUE\" Sortable=\"FALSE\" ID=\"{9f640df1-b151-4a1e-962a-3d3a1dbd346b}\" StaticName=\"Answer\" Name=\"Answer\" IsListColumn=\"True\" />"
|
||
},
|
||
{
|
||
"verb": "addSPFieldXml",
|
||
"schemaXml": "<Field Type=\"TaxonomyFieldTypeMulti\" DisplayName=\"Tags\" StaticName=\"TaxKeyword\" Name=\"TaxKeyword\" ID=\"{23f27201-bee3-471e-b2e7-b64fd8b7ca38}\" ShowInViewForms=\"TRUE\" DefaultListField=\"TRUE\" Required=\"FALSE\" Hidden=\"FALSE\" CanToggleHidden=\"TRUE\" ShowField=\"Term1033\" Mult=\"TRUE\" Sortable=\"FALSE\" Group=\"Enterprise Keywords Group\" Description=\"Enterprise Keywords are shared with other users and applications to allow for ease of search and filtering, as well as metadata consistency and reuse\" AllowDeletion=\"TRUE\" Sealed=\"TRUE\"><Customization><ArrayOfProperty><Property><Name>SspId</Name><Value xmlns:q1=\"http://www.w3.org/2001/XMLSchema\" p4:type=\"q1:string\" xmlns:p4=\"http://www.w3.org/2001/XMLSchema-instance\">e50e23b8-aa05-47eb-ae29-f8e2adc447e0</Value></Property><Property><Name>GroupId</Name></Property><Property><Name>TermSetId</Name><Value xmlns:q2=\"http://www.w3.org/2001/XMLSchema\" p4:type=\"q2:string\" xmlns:p4=\"http://www.w3.org/2001/XMLSchema-instance\">00000000-0000-0000-0000-000000000000</Value></Property><Property><Name>AnchorId</Name><Value xmlns:q3=\"http://www.w3.org/2001/XMLSchema\" p4:type=\"q3:string\" xmlns:p4=\"http://www.w3.org/2001/XMLSchema-instance\">00000000-0000-0000-0000-000000000000</Value></Property><Property><Name>UserCreated</Name><Value xmlns:q4=\"http://www.w3.org/2001/XMLSchema\" p4:type=\"q4:boolean\" xmlns:p4=\"http://www.w3.org/2001/XMLSchema-instance\">false</Value></Property><Property><Name>Open</Name><Value xmlns:q5=\"http://www.w3.org/2001/XMLSchema\" p4:type=\"q5:boolean\" xmlns:p4=\"http://www.w3.org/2001/XMLSchema-instance\">true</Value></Property><Property><Name>IsPathRendered</Name><Value xmlns:q7=\"http://www.w3.org/2001/XMLSchema\" p4:type=\"q7:boolean\" xmlns:p4=\"http://www.w3.org/2001/XMLSchema-instance\">false</Value></Property><Property><Name>IsKeyword</Name><Value xmlns:q8=\"http://www.w3.org/2001/XMLSchema\" p4:type=\"q8:boolean\" xmlns:p4=\"http://www.w3.org/2001/XMLSchema-instance\">true</Value></Property><Property><Name>TargetTemplate</Name></Property><Property><Name>CreateValuesInEditForm</Name><Value xmlns:q9=\"http://www.w3.org/2001/XMLSchema\" p4:type=\"q9:boolean\" xmlns:p4=\"http://www.w3.org/2001/XMLSchema-instance\">false</Value></Property><Property><Name>FilterAssemblyStrongName</Name></Property><Property><Name>FilterClassName</Name></Property><Property><Name>FilterMethodName</Name></Property><Property><Name>FilterJavascriptProperty</Name></Property></ArrayOfProperty></Customization></Field>"
|
||
},
|
||
{
|
||
"verb": "addSPFieldXml",
|
||
"schemaXml": "<Field Type=\"Choice\" DisplayName=\"Category\" Required=\"FALSE\" EnforceUniqueValues=\"FALSE\" Indexed=\"FALSE\" Format=\"Dropdown\" FillInChoice=\"FALSE\" ID=\"{87400be9-f7a3-4eee-b840-81444e6ddd72}\" StaticName=\"Category\" Name=\"Category\" CustomFormatter=\"\" IsListColumn=\"True\"><CHOICES><CHOICE>Microsoft Teams</CHOICE><CHOICE>Access Requests</CHOICE><CHOICE>Computers & Software</CHOICE><CHOICE>Mobile Phones</CHOICE><CHOICE>Outlook & Webmail</CHOICE><CHOICE>Printing & Scanning</CHOICE><CHOICE>Print-Canon</CHOICE><CHOICE>Remote Access & Connectivity</CHOICE><CHOICE>SharePoint, Files & Folders</CHOICE><CHOICE>Video & Teleconferencing</CHOICE><CHOICE>Other</CHOICE></CHOICES></Field>"
|
||
},
|
||
{
|
||
"verb": "addSPFieldXml",
|
||
"schemaXml": "<Field ID=\"{bc91a437-52e7-49e1-8c4e-4698904b2b6d}\" ReadOnly=\"TRUE\" Type=\"Computed\" Name=\"LinkTitleNoMenu\" DisplayName=\"Question\" Dir=\"\" DisplayNameSrcField=\"Title\" AuthoringInfo=\"(linked to item)\" EnableLookup=\"TRUE\" ListItemMenuAllowed=\"Prohibited\" LinkToItemAllowed=\"Prohibited\" SourceID=\"http://schemas.microsoft.com/sharepoint/v3\" StaticName=\"LinkTitleNoMenu\" FromBaseType=\"TRUE\"><FieldRefs><FieldRef Name=\"Title\" /><FieldRef Name=\"LinkFilenameNoMenu\" /></FieldRefs><DisplayPattern><IfEqual><Expr1><LookupColumn Name=\"FSObjType\" /></Expr1><Expr2>1</Expr2><Then><Field Name=\"LinkFilenameNoMenu\" /></Then><Else><HTML><![CDATA[<a onfocus=\"OnLink(this)\" href=\"]]></HTML><URL /><HTML><![CDATA[\" onclick=\"EditLink2(this,]]></HTML><Counter Type=\"View\" /><HTML><![CDATA[);return false;\" target=\"_self\">]]></HTML><Column HTMLEncode=\"TRUE\" Name=\"Title\" Default=\"(no title)\" /><IfEqual><Expr1><GetVar Name=\"ShowAccessibleIcon\" /></Expr1><Expr2>1</Expr2><Then><HTML><![CDATA[<img src=\"/_layouts/15/images/blank.gif?rev=47\" class=\"ms-hidden\" border=\"0\" width=\"1\" height=\"1\" alt=\"Use SHIFT+ENTER to open the menu (new window).\"/>]]></HTML></Then></IfEqual><HTML><![CDATA[</a>]]></HTML><IfNew><HTML><![CDATA[<img src=\"/_layouts/1033/images/new.gif\" alt=\"]]></HTML><HTML>New</HTML><HTML><![CDATA[\" class=\"ms-newgif\" />]]></HTML></IfNew></Else></IfEqual></DisplayPattern></Field>"
|
||
},
|
||
{
|
||
"verb": "addSPFieldXml",
|
||
"schemaXml": "<Field ID=\"{82642ec8-ef9b-478f-acf9-31f7d45fbc31}\" ReadOnly=\"TRUE\" Type=\"Computed\" Name=\"LinkTitle\" DisplayName=\"Question\" DisplayNameSrcField=\"Title\" ClassInfo=\"Menu\" AuthoringInfo=\"(linked to item with edit menu)\" ListItemMenuAllowed=\"Required\" LinkToItemAllowed=\"Prohibited\" SourceID=\"http://schemas.microsoft.com/sharepoint/v3\" StaticName=\"LinkTitle\" FromBaseType=\"TRUE\"><FieldRefs><FieldRef Name=\"Title\" /><FieldRef Name=\"LinkTitleNoMenu\" /><FieldRef Name=\"_EditMenuTableStart2\" /><FieldRef Name=\"_EditMenuTableEnd\" /></FieldRefs><DisplayPattern><FieldSwitch><Expr><GetVar Name=\"FreeForm\" /></Expr><Case Value=\"TRUE\"><Field Name=\"LinkTitleNoMenu\" /></Case><Default><HTML><![CDATA[<div class=\"ms-vb itx\" onmouseover=\"OnItem(this)\" CTXName=\"ctx]]></HTML><Field Name=\"_EditMenuTableStart2\" /><HTML><![CDATA[\">]]></HTML><Field Name=\"LinkTitleNoMenu\" /><HTML><![CDATA[</div>]]></HTML><HTML><![CDATA[<div class=\"s4-ctx\" onmouseover=\"OnChildItem(this.parentNode); return false;\">]]></HTML><HTML><![CDATA[<span> </span>]]></HTML><HTML><![CDATA[<a onfocus=\"OnChildItem(this.parentNode.parentNode); return false;\" onclick=\"PopMenuFromChevron(event); return false;\" href=\"javascript:;\" title=\"Open Menu\"></a>]]></HTML><HTML><![CDATA[<span> </span>]]></HTML><HTML><![CDATA[</div>]]></HTML></Default></FieldSwitch></DisplayPattern></Field>"
|
||
},
|
||
{
|
||
"verb": "addSPFieldXml",
|
||
"schemaXml": "<Field ID=\"{5f190d91-3dbc-4489-9878-3c092caf35b6}\" Hidden=\"TRUE\" ReadOnly=\"TRUE\" Type=\"Computed\" Name=\"LinkTitle2\" DisplayName=\"Question\" DisplayNameSrcField=\"Title\" ClassInfo=\"Menu\" AuthoringInfo=\"(linked to item with edit menu) (old)\" SourceID=\"http://schemas.microsoft.com/sharepoint/v3\" StaticName=\"LinkTitle2\" FromBaseType=\"TRUE\"><FieldRefs><FieldRef Name=\"Title\" /><FieldRef Name=\"LinkTitleNoMenu\" /><FieldRef Name=\"_EditMenuTableStart\" /><FieldRef Name=\"_EditMenuTableEnd\" /></FieldRefs><DisplayPattern><FieldSwitch><Expr><GetVar Name=\"FreeForm\" /></Expr><Case Value=\"TRUE\"><Field Name=\"LinkTitleNoMenu\" /></Case><Default><Field Name=\"_EditMenuTableStart\" /><SetVar Name=\"ShowAccessibleIcon\" Value=\"1\" /><Field Name=\"LinkTitleNoMenu\" /><SetVar Name=\"ShowAccessibleIcon\" Value=\"0\" /><Field Name=\"_EditMenuTableEnd\" /></Default></FieldSwitch></DisplayPattern></Field>"
|
||
},
|
||
{
|
||
"verb": "addSPView",
|
||
"name": "All Items",
|
||
"viewFields": [
|
||
"LinkTitleNoMenu",
|
||
"Answer",
|
||
"Category"
|
||
],
|
||
"query": "",
|
||
"rowLimit": 30,
|
||
"isPaged": true,
|
||
"makeDefault": true,
|
||
"replaceViewFields": true
|
||
},
|
||
{
|
||
"verb": "addSPView",
|
||
"name": "Access Requests",
|
||
"viewFields": [
|
||
"Answer"
|
||
],
|
||
"query": "<GroupBy Collapse=\"TRUE\" GroupLimit=\"30\"><FieldRef Name=\"Title\" /></GroupBy><OrderBy><FieldRef Name=\"Title\" Ascending=\"FALSE\" /></OrderBy><Where><Eq><FieldRef Name=\"Category\" /><Value Type=\"Text\">Access Requests</Value></Eq></Where>",
|
||
"rowLimit": 30,
|
||
"isPaged": true,
|
||
"replaceViewFields": true
|
||
},
|
||
{
|
||
"verb": "addSPView",
|
||
"name": "Video & Teleconferencing",
|
||
"viewFields": [
|
||
"Answer"
|
||
],
|
||
"query": "<GroupBy Collapse=\"TRUE\" GroupLimit=\"30\"><FieldRef Name=\"Title\" /></GroupBy><Where><Eq><FieldRef Name=\"Category\" /><Value Type=\"Text\">Video & Teleconferencing</Value></Eq></Where>",
|
||
"rowLimit": 30,
|
||
"isPaged": true,
|
||
"replaceViewFields": true
|
||
},
|
||
{
|
||
"verb": "addSPView",
|
||
"name": "Outlook and Webmail",
|
||
"viewFields": [
|
||
"Answer"
|
||
],
|
||
"query": "<GroupBy Collapse=\"TRUE\" GroupLimit=\"30\"><FieldRef Name=\"Title\" /></GroupBy><Where><Eq><FieldRef Name=\"Category\" /><Value Type=\"Text\">Outlook & Webmail</Value></Eq></Where>",
|
||
"rowLimit": 30,
|
||
"isPaged": true,
|
||
"replaceViewFields": true
|
||
},
|
||
{
|
||
"verb": "addSPView",
|
||
"name": "Computers and software",
|
||
"viewFields": [
|
||
"Answer"
|
||
],
|
||
"query": "<GroupBy Collapse=\"TRUE\" GroupLimit=\"30\"><FieldRef Name=\"Title\" /></GroupBy><Where><Eq><FieldRef Name=\"Category\" /><Value Type=\"Text\">Computers & Software</Value></Eq></Where>",
|
||
"rowLimit": 30,
|
||
"isPaged": true,
|
||
"replaceViewFields": true
|
||
},
|
||
{
|
||
"verb": "addSPView",
|
||
"name": "Mobile Phones",
|
||
"viewFields": [
|
||
"Answer"
|
||
],
|
||
"query": "<GroupBy Collapse=\"TRUE\" GroupLimit=\"30\"><FieldRef Name=\"Title\" /></GroupBy><Where><Eq><FieldRef Name=\"Category\" /><Value Type=\"Text\">Mobile Phones</Value></Eq></Where>",
|
||
"rowLimit": 30,
|
||
"isPaged": true,
|
||
"replaceViewFields": true
|
||
},
|
||
{
|
||
"verb": "addSPView",
|
||
"name": "Printing and Scanning",
|
||
"viewFields": [
|
||
"Answer"
|
||
],
|
||
"query": "<GroupBy Collapse=\"TRUE\" GroupLimit=\"30\"><FieldRef Name=\"Title\" /></GroupBy><Where><Eq><FieldRef Name=\"Category\" /><Value Type=\"Text\">Printing & Scanning</Value></Eq></Where>",
|
||
"rowLimit": 30,
|
||
"isPaged": true,
|
||
"replaceViewFields": true
|
||
},
|
||
{
|
||
"verb": "addSPView",
|
||
"name": "Remote Access and Connectivity",
|
||
"viewFields": [
|
||
"Answer"
|
||
],
|
||
"query": "<GroupBy Collapse=\"TRUE\" GroupLimit=\"30\"><FieldRef Name=\"Title\" /></GroupBy><Where><Eq><FieldRef Name=\"Category\" /><Value Type=\"Text\">Remote Access & Connectivity</Value></Eq></Where>",
|
||
"rowLimit": 30,
|
||
"isPaged": true,
|
||
"replaceViewFields": true
|
||
},
|
||
{
|
||
"verb": "addSPView",
|
||
"name": "SharePoint, Files and Folders",
|
||
"viewFields": [
|
||
"Answer"
|
||
],
|
||
"query": "<GroupBy Collapse=\"TRUE\" GroupLimit=\"30\"><FieldRef Name=\"Title\" /></GroupBy><Where><Eq><FieldRef Name=\"Category\" /><Value Type=\"Text\">SharePoint, Files & Folders</Value></Eq></Where>",
|
||
"rowLimit": 30,
|
||
"isPaged": true,
|
||
"replaceViewFields": true
|
||
},
|
||
{
|
||
"verb": "addSPView",
|
||
"name": "Edit FAQ View",
|
||
"viewFields": [
|
||
"LinkTitle",
|
||
"Answer",
|
||
"TaxKeyword",
|
||
"Category"
|
||
],
|
||
"query": "",
|
||
"rowLimit": 30,
|
||
"isPaged": true,
|
||
"replaceViewFields": true
|
||
},
|
||
{
|
||
"verb": "addSPView",
|
||
"name": "Other",
|
||
"viewFields": [
|
||
"Answer"
|
||
],
|
||
"query": "<GroupBy Collapse=\"TRUE\" GroupLimit=\"30\"><FieldRef Name=\"Title\" /></GroupBy><Where><Eq><FieldRef Name=\"Category\" /><Value Type=\"Text\">Other</Value></Eq></Where>",
|
||
"rowLimit": 30,
|
||
"isPaged": true,
|
||
"replaceViewFields": true
|
||
},
|
||
{
|
||
"verb": "addSPView",
|
||
"name": "Canon",
|
||
"viewFields": [
|
||
"Answer"
|
||
],
|
||
"query": "<GroupBy Collapse=\"TRUE\" GroupLimit=\"30\"><FieldRef Name=\"Title\" /></GroupBy><OrderBy><FieldRef Name=\"Title\" Ascending=\"FALSE\" /></OrderBy><Where><Eq><FieldRef Name=\"Category\" /><Value Type=\"Text\">Print-Canon</Value></Eq></Where>",
|
||
"rowLimit": 30,
|
||
"isPaged": true,
|
||
"replaceViewFields": true
|
||
}
|
||
]
|
||
}
|
||
]
|
||
}
|