Initial commit
This commit is contained in:
commit
388079e6bb
1108 changed files with 330121 additions and 0 deletions
47
site/blueprints/blocks/spreadimage.yml
Normal file
47
site/blueprints/blocks/spreadimage.yml
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
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"
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue