Skip to main content

UmbracoContentEntity

The UmbracoContentEntity is the concrete Umbraco specific implementation of the IEnterspeedEntity.

Implementation details

Abstract

NameTypeDescription
IdstringUnique identifier ie. "1078-en-us"
TypestringContentType alias
UrlstringThe current URL of the content, either relative or absolute
Redirectsstring[]Array of redirects for the node
ParentIdstringUnique identifier of the parent ie. "1078-en-us"
PropertiesDictionary<string, IEnterspeedProperty>Dictionary of property alias and value is the converted Enterspeed property

Example

{
"id": "1055-en-us",
"type": "site",
"parentId": "1054-en-us",
"url": "https://example.com/about-us",
"redirects": ["/about"],
"properties": {
"includeInNavigation": {
"name": "includeInNavigation",
"type": "boolean",
"value": false
},
"title": {
"name": "title",
"type": "string",
"value": "Home"
},
"metaData": {}
}
}

Meta data

To process Umbraco specific properties we have added a metaData object that contains:

NameTypeDescription
culturestringie. en-us
nodeNamestringName of the node
createDatestringDate for when the node has been created
updateDatestringDate for when the node has last been updated
nodePathstring[]Path to ancestor nodes in the tree
sortOrdernumberWhat order the nodes are sorted in
levelnumberWhat level in the tree the node has
{
"properties": {
"metaData": {
"culture": {
"name": "culture",
"type": "string",
"value": "en-US"
},
"nodeName": {
"name": "nodeName",
"type": "string",
"value": "This is the name of a node"
},
"createDate": {
"name": "createDate",
"type": "string",
"value": "09-12-2020T10:49:01:00"
},
"updateDate": {
"name": "updateDate",
"type": "string",
"value": "10-12-2020T10:49:01:00"
},
"nodePath": {
"name": "nodePath",
"type": "array",
"items": [
{
"name": null,
"type": "number",
"value": 1061,
"precision": 0
},
{
"name": null,
"type": "number",
"value": 1062,
"precision": 0
},
{
"name": null,
"type": "number",
"value": 1063,
"precision": 0
},
]
},
"sortOrder": {
"name": "sortOrder",
"type": "number",
"value": 1,
"precision": 0
},
"level": {
"name": "level",
"type": "number",
"value": 1,
"precision": 0
},
},
}
}