chore: add file relation widget to text proxy backend
This commit is contained in:
parent
ff81002628
commit
9d0936ed54
@ -5,5 +5,23 @@
|
|||||||
"front_limit": 4,
|
"front_limit": 4,
|
||||||
"author": "Bob",
|
"author": "Bob",
|
||||||
"thumb": "/backends/proxy/assets/upload/kanefreeman_2.jpg"
|
"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"
|
||||||
}
|
}
|
||||||
|
]
|
||||||
}
|
}
|
@ -74,6 +74,16 @@ collections:
|
|||||||
name: image
|
name: image
|
||||||
widget: image
|
widget: image
|
||||||
required: false
|
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
|
- label: Body
|
||||||
name: body
|
name: body
|
||||||
widget: markdown
|
widget: markdown
|
||||||
@ -139,6 +149,16 @@ collections:
|
|||||||
name: thumb
|
name: thumb
|
||||||
widget: image
|
widget: image
|
||||||
required: false
|
required: false
|
||||||
|
- label: Icons
|
||||||
|
name: icons
|
||||||
|
widget: list
|
||||||
|
fields:
|
||||||
|
- name: name
|
||||||
|
label: Name
|
||||||
|
widget: string
|
||||||
|
- name: icon
|
||||||
|
label: Icon
|
||||||
|
widget: string
|
||||||
- name: authors
|
- name: authors
|
||||||
label: Authors
|
label: Authors
|
||||||
file: packages/core/dev-test/backends/proxy/_data/authors.yml
|
file: packages/core/dev-test/backends/proxy/_data/authors.yml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user