blueprints
This commit is contained in:
parent
b35bee4fe3
commit
b8cb77c0e5
52 changed files with 752 additions and 6 deletions
39
public/site/blueprints/blocks/video.yml
Normal file
39
public/site/blueprints/blocks/video.yml
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
name: field.blocks.video.name
|
||||
icon: video
|
||||
preview: video
|
||||
fields:
|
||||
# url:
|
||||
# label: field.blocks.video.url.label
|
||||
# type: url
|
||||
# placeholder: field.blocks.video.url.placeholder
|
||||
location:
|
||||
label: field.blocks.image.location
|
||||
type: radio
|
||||
columns: 2
|
||||
default: "kirby"
|
||||
options:
|
||||
kirby: "{{ t('field.blocks.image.location.internal') }}"
|
||||
web: "{{ t('field.blocks.image.location.external') }}"
|
||||
video:
|
||||
label: field.blocks.video.name
|
||||
type: files
|
||||
query: model.videos
|
||||
multiple: false
|
||||
video:
|
||||
back: black
|
||||
uploads:
|
||||
template: blocks/video
|
||||
when:
|
||||
location: kirby
|
||||
url:
|
||||
label: field.blocks.video.url.label
|
||||
type: url
|
||||
placeholder: field.blocks.video.url.placeholder
|
||||
when:
|
||||
location: web
|
||||
caption:
|
||||
label: field.blocks.video.caption
|
||||
type: writer
|
||||
inline: true
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue