Skip to content

Instantly share code, notes, and snippets.

@sosatila
Last active December 29, 2020 22:23
Show Gist options
  • Save sosatila/0bb202d92f7ba843fdc418580ccf4b19 to your computer and use it in GitHub Desktop.
Save sosatila/0bb202d92f7ba843fdc418580ccf4b19 to your computer and use it in GitHub Desktop.
DXA 2.2 R2 Data Model Examples
{
"Id": "19100",
"Namespace": "tcm",
"Title": "Example 0 - Empty, No Includes, No Regions, No Metadata",
"PageTemplate": {
"Id": "19098",
"Namespace": "tcm",
"Title": "Page Template 0 - No Includes + No Regions, No Metadata",
"FileExtension": "html",
"RevisionDate": "2020-12-06T17:19:50.91",
"Metadata": {
"view": "Demo:PageView"
}
},
"StructureGroupId": "5636",
"UrlPath": "/asos/r2_demo/example0",
"Meta": {
"twitter:card": "summary",
"og:title": "Example 0 - Empty, No Includes, No Regions, No Metadata",
"og:type": "article",
"og:locale": "en-US",
"description": "Example 0 - Empty, No Includes, No Regions, No Metadata"
},
"Regions": [],
"MvcData": {
"ViewName": "PageView",
"AreaName": "Demo"
},
"XpmMetadata": {
"PageID": "tcm:1104-19100-64",
"PageModified": "2020-12-06T17:14:41.96",
"PageTemplateID": "tcm:1104-19098-128",
"PageTemplateModified": "2020-12-06T17:19:50.91"
},
"SchemaId": "19096"
}
{
"Id": "19102",
"Namespace": "tcm",
"Title": "Example 1a - Empty, No Includes, No Regions, Metadata via Metadata Schema",
"PageTemplate": {
"Id": "19098",
"Namespace": "tcm",
"Title": "Page Template 0 - No Includes + No Regions, No Metadata",
"FileExtension": "html",
"RevisionDate": "2020-12-06T17:19:50.91",
"Metadata": {
"view": "Demo:PageView"
}
},
"StructureGroupId": "5636",
"UrlPath": "/asos/r2_demo/example1a",
"Meta": {
"simpleMetadataTextField": "Hello World from Page Metadata (through Metadata Schema)",
"twitter:card": "summary",
"og:title": "Example 1a - Empty, No Includes, No Regions, Metadata via Metadata Schema",
"og:type": "article",
"og:locale": "en-US",
"description": "Example 1a - Empty, No Includes, No Regions, Metadata via Metadata Schema"
},
"Regions": [],
"MvcData": {
"ViewName": "PageView",
"AreaName": "Demo"
},
"XpmMetadata": {
"PageID": "tcm:1104-19102-64",
"PageModified": "2020-12-13T19:25:53.6",
"PageTemplateID": "tcm:1104-19098-128",
"PageTemplateModified": "2020-12-06T17:19:50.91"
},
"Metadata": {
"simpleMetadataTextField": "Hello World from Page Metadata (through Metadata Schema)"
},
"SchemaId": "19101"
}
{
"Id": "19103",
"Namespace": "tcm",
"Title": "Example 1b - Empty, No Includes, No Regions, Metadata via Page Schema",
"PageTemplate": {
"Id": "19099",
"Namespace": "tcm",
"Title": "Page Template 1 - No Includes + No Regions, With Metadata",
"FileExtension": "html",
"RevisionDate": "2020-12-06T17:19:18.67",
"Metadata": {
"view": "Demo:PageView"
}
},
"StructureGroupId": "5636",
"UrlPath": "/asos/r2_demo/example1b",
"Meta": {
"pageMetadataSimpleTextField": "Hello World from Page Metadata (through Page Schema)",
"twitter:card": "summary",
"og:title": "Example 1b - Empty, No Includes, No Regions, Metadata via Page Schema",
"og:type": "article",
"og:locale": "en-US",
"description": "Example 1b - Empty, No Includes, No Regions, Metadata via Page Schema"
},
"Regions": [],
"MvcData": {
"ViewName": "PageView",
"AreaName": "Demo"
},
"XpmMetadata": {
"PageID": "tcm:1104-19103-64",
"PageModified": "2020-12-13T20:11:24.687",
"PageTemplateID": "tcm:1104-19099-128",
"PageTemplateModified": "2020-12-06T17:19:18.67"
},
"Metadata": {
"pageMetadataSimpleTextField": "Hello World from Page Metadata (through Page Schema)"
},
"SchemaId": "19097"
}
{
"Id": "19105",
"Namespace": "tcm",
"Title": "Example 2 - Empty, With Includes, No Regions, Metadata via Page Schema",
"PageTemplate": {
"Id": "19104",
"Namespace": "tcm",
"Title": "Page Template 2 - Includes + No Regions, With Metadata",
"FileExtension": "html",
"RevisionDate": "2020-12-13T20:43:32.687",
"Metadata": {
"includes": "system/include/Demo:IncludePageRegionView Include Page",
"view": "Demo:PageView"
}
},
"StructureGroupId": "5636",
"UrlPath": "/asos/r2_demo/example2",
"Meta": {
"pageMetadataSimpleTextField": "Hello World from Page Metadata (through Page Schema)",
"twitter:card": "summary",
"og:title": "Example 2 - Empty, With Includes, No Regions, Metadata via Page Schema",
"og:type": "article",
"og:locale": "en-US",
"description": "Example 2 - Empty, With Includes, No Regions, Metadata via Page Schema"
},
"Regions": [
{
"Name": "IncludePageRegionView Include Page",
"IncludePageId": "19090",
"MvcData": {
"ViewName": "IncludePageRegionView Include Page",
"AreaName": "Demo"
},
"XpmMetadata": {
"IncludedFromPageID": "tcm:1104-19090-64",
"IncludedFromPageTitle": "Demo:IncludePageRegionView Include Page",
"IncludedFromPageFileName": "include_page"
}
}
],
"MvcData": {
"ViewName": "PageView",
"AreaName": "Demo"
},
"XpmMetadata": {
"PageID": "tcm:1104-19105-64",
"PageModified": "2020-12-13T20:53:03.447",
"PageTemplateID": "tcm:1104-19104-128",
"PageTemplateModified": "2020-12-13T20:43:32.687"
},
"Metadata": {
"pageMetadataSimpleTextField": "Hello World from Page Metadata (through Page Schema)"
},
"SchemaId": "19097"
}
{
"Id": "19073-19078",
"Namespace": "tcm",
"ComponentTemplate": {
"Id": "19078",
"Namespace": "tcm",
"Title": "Component Template 2 - Dynamic",
"RevisionDate": "2020-11-29T16:17:54.39",
"OutputFormat": "HTML Fragment",
"Metadata": {
"view": "Demo:LinkedComponentView"
}
},
"Folder": {
"Id": "5633",
"Title": "R2 Data Model Dissecting"
},
"Content": {
"simpleTextField": "Hello World"
},
"MvcData": {
"ViewName": "LinkedComponentView",
"AreaName": "Demo"
},
"XpmMetadata": {
"ComponentID": "tcm:1104-19073",
"ComponentModified": "2020-12-06T19:04:21.34",
"ComponentTemplateID": "tcm:1104-19078-32",
"ComponentTemplateModified": "2020-11-29T16:17:54.39",
"IsRepositoryPublished": true
},
"Metadata": {
"metadataSimpleTextField": "Hellow World From Metadata"
},
"SchemaId": "19071"
}
{
"Id": "19073",
"Namespace": "tcm",
"ComponentTemplate": {
"Id": "19077",
"Namespace": "tcm",
"Title": "Component Template 2 - Embedded",
"RevisionDate": "2020-11-29T16:17:59.887",
"OutputFormat": "HTML Fragment",
"Metadata": {
"view": "Demo:LinkedComponentView"
}
},
"Folder": {
"Id": "5633",
"Title": "R2 Data Model Dissecting"
},
"Content": {
"simpleTextField": "Hello World"
},
"MvcData": {
"ViewName": "LinkedComponentView",
"AreaName": "Demo"
},
"XpmMetadata": {
"ComponentID": "tcm:1104-19073",
"ComponentModified": "2020-12-06T19:04:21.34",
"ComponentTemplateID": "tcm:1104-19077-32",
"ComponentTemplateModified": "2020-11-29T16:17:59.887",
"IsRepositoryPublished": false
},
"Metadata": {
"metadataSimpleTextField": "Hellow World From Metadata"
},
"SchemaId": "19071"
}
{
"Id": "19111",
"Namespace": "tcm",
"ComponentTemplate": {
"Id": "19077",
"Namespace": "tcm",
"Title": "Component Template 2 - Embedded",
"RevisionDate": "2020-12-26T12:48:05.473",
"OutputFormat": "HTML Fragment",
"Metadata": {
"view": "Demo:LinkedComponentView"
}
},
"Folder": {
"Id": "5633",
"Title": "R2 Data Model Dissecting"
},
"Content": {
"simpleTextField": "Hello World from Text Field",
"multiValueSimpleTextField": {
"$type": "String[]",
"$values": [
"Lorem",
"Ipsum"
]
},
"richTextField": {
"$type": "RichTextData",
"Fragments": [
"<p><strong>Lorem ipsum</strong> <em>dolor sit</em> amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ante metus dictum at tempor commodo ullamcorper.\n<br /></p>\n<p>Commodo elit at imperdiet dui. Rutrum quisque non tellus orci ac auctor. Porttitor rhoncus dolor purus non.</p>"
]
},
"dateField": "2020-12-28T17:38:50.696",
"numberField": "10.57",
"embeddedSchemaField": {
"$type": "ContentModelData",
"externalLinkField": "https://www.exlrt.com",
"multimediaLink": {
"$type": "EntityModelData",
"Id": "15421",
"Namespace": "tcm",
"ComponentTemplate": {
"Id": "15256",
"Namespace": "tcm",
"RevisionDate": "0001-01-01T00:00:00"
},
"Folder": {
"Id": "4660",
"Title": "Large"
},
"BinaryContent": {
"Url": "/Preview/asos/Images/bulls-eye_tcm1104-15421.JPG",
"FileName": "bulls-eye.JPG",
"FileSize": 1276322,
"MimeType": "image/jpeg"
},
"SchemaId": "15204"
}
}
},
"MvcData": {
"ViewName": "LinkedComponentView",
"AreaName": "Demo"
},
"XpmMetadata": {
"ComponentID": "tcm:1104-19111",
"ComponentModified": "2020-12-28T16:55:54.12",
"ComponentTemplateID": "tcm:1104-19077-32",
"ComponentTemplateModified": "2020-12-26T12:48:05.473",
"IsRepositoryPublished": false
},
"Metadata": {
"metadataSimpleTextField": "Hello World from Metadata"
},
"SchemaId": "19108"
}
{
"Id": "19074",
"Namespace": "tcm",
"ComponentTemplate": {
"Id": "19075",
"Namespace": "tcm",
"Title": "Component Template 1 - Embedded",
"RevisionDate": "2020-11-29T16:17:48.567",
"OutputFormat": "HTML Fragment",
"Metadata": {
"view": "Demo:LinkingComponentView"
}
},
"Folder": {
"Id": "5633",
"Title": "R2 Data Model Dissecting"
},
"Content": {
"textFieldFromCategory1_Publishable": {
"$type": "KeywordModelData",
"Id": "19067",
"Namespace": "tcm"
},
"textFieldFromCategory2_NonPublishable": {
"$type": "KeywordModelData",
"Id": "19069",
"Namespace": "tcm",
"Title": "Keyword 1 - From Category 2 (NonPublishable)",
"Description": "Keyword 1 - From Category 2 (NonPublishable)",
"Key": "Keyword 1 Key - From Category 2 (NonPublishable)",
"TaxonomyId": "5635"
},
"linkedComponentBasedOnSchema2": {
"$type": "EntityModelData",
"Id": "19111",
"Namespace": "tcm",
"ComponentTemplate": {
"Id": "15256",
"Namespace": "tcm",
"RevisionDate": "0001-01-01T00:00:00"
},
"Folder": {
"Id": "5633",
"Title": "R2 Data Model Dissecting"
},
"Content": {
"simpleTextField": "Hello World from Text Field",
"multiValueSimpleTextField": {
"$type": "String[]",
"$values": [
"Lorem",
"Ipsum"
]
},
"richTextField": {
"$type": "RichTextData",
"Fragments": [
"<p><strong>Lorem ipsum</strong> <em>dolor sit</em> amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ante metus dictum at tempor commodo ullamcorper.\n<br /></p>\n<p>Commodo elit at imperdiet dui. Rutrum quisque non tellus orci ac auctor. Porttitor rhoncus dolor purus non.</p>"
]
},
"dateField": "2020-12-28T17:38:50.696",
"numberField": "10.57",
"embeddedSchemaField": {
"$type": "ContentModelData",
"externalLinkField": "https://www.exlrt.com",
"multimediaLink": {
"$type": "EntityModelData",
"Id": "15421",
"Namespace": "tcm",
"ComponentTemplate": {
"Id": "15256",
"Namespace": "tcm",
"RevisionDate": "0001-01-01T00:00:00"
},
"Folder": {
"Id": "4660",
"Title": "Large"
},
"BinaryContent": {
"Url": "/Preview/asos/Images/bulls-eye_tcm1104-15421.JPG",
"FileName": "bulls-eye.JPG",
"FileSize": 1276322,
"MimeType": "image/jpeg"
},
"SchemaId": "15204"
}
}
},
"Metadata": {
"metadataSimpleTextField": "Hello World from Metadata"
},
"SchemaId": "19108"
}
},
"MvcData": {
"ViewName": "LinkingComponentView",
"AreaName": "Demo"
},
"XpmMetadata": {
"ComponentID": "tcm:1104-19074",
"ComponentModified": "2020-12-29T22:16:26.923",
"ComponentTemplateID": "tcm:1104-19075-32",
"ComponentTemplateModified": "2020-11-29T16:17:48.567",
"IsRepositoryPublished": false
},
"SchemaId": "19072"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment