SiteScripts/Journal.json
{ "$schema": "https://developer.microsoft.com/json-schemas/sp/site-design-script-actions.schema.json", "actions": [ { "verb": "createSPList", "listName": "Journal", "templateType": 100, "subactions": [ { "verb": "setDescription", "description": "This is the journal which is used to keep track of significant portal changes." }, { "verb": "addSPFieldXml", "schemaXml": "<Field ID=\"{fa564e0f-0c70-4ab9-b863-0177e6ddd247}\" Type=\"Text\" Name=\"Title\" DisplayName=\"Title\" Required=\"TRUE\" SourceID=\"http://schemas.microsoft.com/sharepoint/v3\" StaticName=\"Title\" FromBaseType=\"TRUE\" ShowInNewForm=\"TRUE\" ShowInEditForm=\"TRUE\" />" }, { "verb": "addSPFieldXml", "schemaXml": "<Field Type=\"Note\" DisplayName=\"Body\" Required=\"FALSE\" EnforceUniqueValues=\"FALSE\" Indexed=\"FALSE\" NumLines=\"6\" RichText=\"TRUE\" RichTextMode=\"FullHtml\" IsolateStyles=\"TRUE\" Sortable=\"FALSE\" ID=\"{6bce1ff5-44b8-4408-99c2-45e82a2de9c2}\" StaticName=\"Body\" Name=\"Body\" />" }, { "verb": "addSPFieldXml", "schemaXml": "<Field Type=\"DateTime\" DisplayName=\"Date\" Required=\"FALSE\" EnforceUniqueValues=\"FALSE\" Indexed=\"FALSE\" Format=\"DateOnly\" FriendlyDisplayFormat=\"Disabled\" ID=\"{341b712e-9f69-4973-b1a7-524612578619}\" StaticName=\"Date\" Name=\"Date\"><Default>[today]</Default></Field>" }, { "verb": "addSPView", "name": "All Items", "viewFields": [ "Date", "LinkTitle", "Body" ], "query": "<OrderBy><FieldRef Name=\"Date\" Ascending=\"FALSE\" /><FieldRef Name=\"Created\" Ascending=\"FALSE\" /></OrderBy>", "rowLimit": 30, "isPaged": true, "replaceViewFields": true }, { "verb": "addSPView", "name": "Default", "viewFields": [ "LinkTitle", "Body", "Date" ], "query": "<OrderBy><FieldRef Name=\"Date\" Ascending=\"FALSE\" /><FieldRef Name=\"Created\" Ascending=\"FALSE\" /></OrderBy>", "rowLimit": 30, "isPaged": true, "makeDefault": true, "replaceViewFields": true } ] } ] } |