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,
|
||||
"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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user