chore: add file relation widget to text proxy backend

This commit is contained in:
Daniel Lautzenheiser 2023-08-31 11:51:03 -04:00
parent ff81002628
commit 9d0936ed54
2 changed files with 40 additions and 2 deletions

View File

@ -5,5 +5,23 @@
"front_limit": 4,
"author": "Bob",
"thumb": "/backends/proxy/assets/upload/kanefreeman_2.jpg"
}
}
},
"icons": [
{
"name": "right",
"icon": "/src/icons/right.svg"
},
{
"name": "left",
"icon": "/src/icons/left.svg"
},
{
"name": "download",
"icon": "/src/icons/download.svg"
},
{
"name": "zoom",
"icon": "/src/icons/zoom.svg"
}
]
}

View File

@ -74,6 +74,16 @@ collections:
name: image
widget: image
required: false
- name: icons
label: Icon
widget: relation
collection: settings
required: false
file: general
search_fields: ['icons.*.name']
display_fields: ['icons.*.name']
options_length: 200
value_field: icons.*.icon
- label: Body
name: body
widget: markdown
@ -139,6 +149,16 @@ collections:
name: thumb
widget: image
required: false
- label: Icons
name: icons
widget: list
fields:
- name: name
label: Name
widget: string
- name: icon
label: Icon
widget: string
- name: authors
label: Authors
file: packages/core/dev-test/backends/proxy/_data/authors.yml