48 lines
904 B
YAML
48 lines
904 B
YAML
|
|
name: Image en double page
|
||
|
|
icon: image
|
||
|
|
wysiwyg: true
|
||
|
|
preview: image
|
||
|
|
fields:
|
||
|
|
location:
|
||
|
|
label: field.blocks.image.location
|
||
|
|
type: radio
|
||
|
|
columns: 2
|
||
|
|
default: "kirby"
|
||
|
|
required: true
|
||
|
|
options:
|
||
|
|
kirby: "{{ t('field.blocks.image.location.internal') }}"
|
||
|
|
web: "{{ t('field.blocks.image.location.external') }}"
|
||
|
|
image:
|
||
|
|
label: field.blocks.image.name
|
||
|
|
type: files
|
||
|
|
query: model.images
|
||
|
|
multiple: false
|
||
|
|
image:
|
||
|
|
back: black
|
||
|
|
uploads:
|
||
|
|
template: blocks/image
|
||
|
|
when:
|
||
|
|
location: kirby
|
||
|
|
src:
|
||
|
|
label: field.blocks.image.url
|
||
|
|
type: url
|
||
|
|
when:
|
||
|
|
location: web
|
||
|
|
alt:
|
||
|
|
label: field.blocks.image.alt
|
||
|
|
type: text
|
||
|
|
icon: title
|
||
|
|
caption:
|
||
|
|
label: field.blocks.image.caption
|
||
|
|
type: writer
|
||
|
|
icon: text
|
||
|
|
inline: true
|
||
|
|
fullwidth:
|
||
|
|
label: Image width fit page width
|
||
|
|
type: toggle
|
||
|
|
text:
|
||
|
|
- "off"
|
||
|
|
- "on"
|
||
|
|
|
||
|
|
|