-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite example schemas to use the "new" and simplified format
- Loading branch information
1 parent
9f26710
commit da914ce
Showing
4 changed files
with
75 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,8 @@ | ||
{ | ||
// Example partial schema used for page meta data | ||
"properties": { | ||
"sourceEntityAlias": "{item.type}", | ||
"sourceEntityName": "{item.type}", | ||
"contentName": { | ||
"type": "string", | ||
"value": { | ||
"$exp": "{item.p.metaData.name}" | ||
} | ||
} | ||
} | ||
"properties": { | ||
"sourceEntityAlias": "{item.type}", | ||
"sourceEntityName": "{item.type}", | ||
"contentName": "{item.p.metaData.name}" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,39 @@ | ||
{ | ||
// Example handle used for returning all routeable views | ||
// Example handle used for returning all routeable views | ||
|
||
"triggers": { | ||
"demoCMS": [ | ||
"home" | ||
] | ||
"triggers": { | ||
"demoCMS": [ | ||
"home" | ||
] | ||
}, | ||
"route": { | ||
"handles": [ | ||
"navigation-{properties.metaData.culture}" | ||
] | ||
}, | ||
"properties": { | ||
"self": { | ||
"type": "reference", | ||
"originId": "{originId}", | ||
"alias": "navigationLinkItem" | ||
}, | ||
"route": { | ||
"handles": [ | ||
{ | ||
"$exp": "navigation-{properties.metaData.culture}" | ||
} | ||
] | ||
}, | ||
"properties": { | ||
"self": { | ||
"type": "reference", | ||
"originId": { | ||
"$exp": "{originId}" | ||
}, | ||
"view": "navigationLinkItem" | ||
}, | ||
"children": { | ||
"type": "array", | ||
"input": { | ||
"$lookup": { | ||
"operator": "equals", | ||
"sourceEntityType": "*", | ||
"sourceEntityProperty": "originParentId", | ||
"matchValue": { | ||
"$exp": "{originId}" | ||
} | ||
} | ||
}, | ||
"items": { | ||
"type": "reference", | ||
"gid": { | ||
"$exp": "{item.id}" | ||
}, | ||
"view": "navigationItem" | ||
} | ||
"children": { | ||
"type": "array", | ||
"input": { | ||
"$lookup": { | ||
"operator": "equals", | ||
"sourceEntityType": "*", | ||
"sourceEntityProperty": "originParentId", | ||
"matchValue": { | ||
"$exp": "{originId}" | ||
} | ||
} | ||
}, | ||
"items": { | ||
"type": "reference", | ||
"gid": "{item.id}", | ||
"alias": "navigationItem" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters