Skip to content

Commit

Permalink
feat(demo): implement emsco_display for content types (#913)
Browse files Browse the repository at this point in the history
  • Loading branch information
Davidmattei authored Jun 13, 2024
1 parent 9991dcc commit b08a820
Show file tree
Hide file tree
Showing 26 changed files with 435 additions and 204 deletions.
5 changes: 1 addition & 4 deletions configs/admin/content-type/asset.json
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,7 @@
},
"replaced": []
}
],
"__initializer__": null,
"__cloner__": null,
"__isInitialized__": true
]
},
"replaced": []
},
Expand Down
5 changes: 1 addition & 4 deletions configs/admin/content-type/category.json
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,7 @@
},
"replaced": []
}
],
"__initializer__": null,
"__cloner__": null,
"__isInitialized__": true
]
},
"replaced": []
},
Expand Down
80 changes: 65 additions & 15 deletions configs/admin/content-type/feature.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,35 @@
},
"orderKey": 0,
"children": [
{
"class": "EMS\\CoreBundle\\Entity\\FieldType",
"arguments": [],
"properties": {
"type": "EMS\\CoreBundle\\Form\\DataField\\FormFieldType",
"name": "display",
"contentType": null,
"deleted": false,
"description": null,
"options": {
"displayOptions": {
"form": "display"
},
"mappingOptions": [],
"restrictionOptions": {
"minimum_role": null
},
"extraOptions": {
"extra": null,
"clear_on_copy": false,
"postProcessing": null
},
"raw_data": []
},
"orderKey": 1,
"children": []
},
"replaced": []
},
{
"class": "EMS\\CoreBundle\\Entity\\FieldType",
"arguments": [],
Expand Down Expand Up @@ -69,7 +98,7 @@
},
"raw_data": []
},
"orderKey": 1,
"orderKey": 2,
"children": [
{
"class": "EMS\\CoreBundle\\Entity\\FieldType",
Expand Down Expand Up @@ -100,7 +129,7 @@
},
"raw_data": []
},
"orderKey": 0,
"orderKey": 1,
"children": [
{
"class": "EMS\\CoreBundle\\Entity\\FieldType",
Expand Down Expand Up @@ -144,7 +173,7 @@
"protected": false
}
},
"orderKey": 0,
"orderKey": 1,
"children": []
},
"replaced": []
Expand Down Expand Up @@ -181,7 +210,7 @@
},
"raw_data": []
},
"orderKey": 1,
"orderKey": 2,
"children": [
{
"class": "EMS\\CoreBundle\\Entity\\FieldType",
Expand All @@ -207,7 +236,7 @@
},
"mappingOptions": {
"index": null,
"analyzer": "keyword",
"analyzer": "version",
"copy_to": "live_search"
},
"restrictionOptions": {
Expand All @@ -225,7 +254,7 @@
"protected": false
}
},
"orderKey": 0,
"orderKey": 1,
"children": []
},
"replaced": []
Expand Down Expand Up @@ -274,7 +303,7 @@
"protected": false
}
},
"orderKey": 1,
"orderKey": 2,
"children": []
},
"replaced": []
Expand Down Expand Up @@ -303,7 +332,7 @@
},
"raw_data": []
},
"orderKey": 2,
"orderKey": 3,
"children": []
},
"replaced": []
Expand All @@ -316,10 +345,7 @@
},
"replaced": []
}
],
"__initializer__": null,
"__cloner__": null,
"__isInitialized__": true
]
},
"replaced": []
},
Expand All @@ -331,7 +357,30 @@
"webContent": false,
"autoPublish": false,
"templates": [],
"views": [],
"views": [
{
"class": "EMS\\CoreBundle\\Entity\\View",
"arguments": [],
"properties": {
"name": "overview",
"type": "ems.view.report",
"label": "Overview",
"icon": "fa fa-list-ul",
"options": {
"body": "{}",
"size": 0,
"template": "{{ block(\"template\", \"@EMSCH/template_ems/view/overview.twig\") }}",
"header": "{{ block(\"css\", \"@EMSCH/template_ems/view/overview.twig\") }}",
"javascript": "{{ block(\"javascript\", \"@EMSCH/template_ems/view/overview.twig\") }}"
},
"orderKey": 1,
"public": false,
"role": "ROLE_USER",
"definition": "default_overview"
},
"replaced": []
}
],
"defaultValue": null,
"versionTags": [],
"versionOptions": {
Expand All @@ -352,10 +401,10 @@
"trash": "not-defined",
"archive": "not-defined",
"show_link_create": "ROLE_USER",
"show_link_search": "ROLE_USER"
"show_link_search": "not-defined"
},
"fields": {
"display": "rawData['version'] ~ ' - ' ~ (rawData[userLocale]['title'] ?? rawData['nl']['title'])",
"display": "(rawData['display_label_'~userLocale] ?? rawData['display_label_fr'])",
"label": null,
"color": null,
"sort": null,
Expand All @@ -367,6 +416,7 @@
},
"settings": {
"tasks_enabled": false,
"tasks_titles": [],
"hide_revision_sidebar": false
}
},
Expand Down
5 changes: 1 addition & 4 deletions configs/admin/content-type/form_instance.json
Original file line number Diff line number Diff line change
Expand Up @@ -2314,10 +2314,7 @@
},
"replaced": []
}
],
"__initializer__": null,
"__cloner__": null,
"__isInitialized__": true
]
},
"replaced": []
},
Expand Down
5 changes: 1 addition & 4 deletions configs/admin/content-type/label.json
Original file line number Diff line number Diff line change
Expand Up @@ -413,10 +413,7 @@
},
"replaced": []
}
],
"__initializer__": null,
"__cloner__": null,
"__isInitialized__": true
]
},
"replaced": []
},
Expand Down
5 changes: 1 addition & 4 deletions configs/admin/content-type/media_file.json
Original file line number Diff line number Diff line change
Expand Up @@ -506,10 +506,7 @@
},
"replaced": []
}
],
"__initializer__": null,
"__cloner__": null,
"__isInitialized__": true
]
},
"replaced": []
},
Expand Down
Loading

0 comments on commit b08a820

Please sign in to comment.