Skip to content

Commit

Permalink
Fix: DisplayTitle default removed from content and moved to specific …
Browse files Browse the repository at this point in the history
…schemas (#581)
  • Loading branch information
joe-allen-89 authored Sep 23, 2024
1 parent 763e097 commit bc4c8ce
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions schema/component.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"type": "string",
"title": "Component"
},
"displayTitle": {
"default": "Untitled"
},
"_layout": {
"type": "string",
"title": "Layout",
Expand Down
2 changes: 1 addition & 1 deletion schema/content.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"type": "string",
"title": "Display title",
"description": "When viewing an element - this is the title that will be displayed on the page",
"default": "Untitled",
"default": "",
"_adapt": {
"translatable": true
},
Expand Down
3 changes: 3 additions & 0 deletions schema/contentobject.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
},
"with": {
"properties": {
"displayTitle": {
"default": "Untitled"
},
"subtitle": {
"type": "string",
"title": "Subtitle",
Expand Down
3 changes: 3 additions & 0 deletions schema/course.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
},
"with": {
"properties": {
"displayTitle": {
"default": "Untitled"
},
"heroImage": {
"type": "string",
"isObjectId": true,
Expand Down

0 comments on commit bc4c8ce

Please sign in to comment.