blueprints
This commit is contained in:
parent
b35bee4fe3
commit
b8cb77c0e5
52 changed files with 752 additions and 6 deletions
60
public/site/blueprints/blocks/image.yml
Normal file
60
public/site/blueprints/blocks/image.yml
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
name: field.blocks.image.name
|
||||
icon: image
|
||||
preview: image
|
||||
fields:
|
||||
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') }}"
|
||||
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
|
||||
link:
|
||||
label: field.blocks.image.link
|
||||
type: text
|
||||
icon: url
|
||||
width:
|
||||
label: Largeur de l'image
|
||||
type: select
|
||||
width: 1/2
|
||||
options:
|
||||
16.666%: "16.666%"
|
||||
20%: "20%"
|
||||
25%: "25%"
|
||||
33.333%: "33.333%"
|
||||
50%: "50%"
|
||||
66.666%: "66.666%"
|
||||
100%: "100%"
|
||||
position:
|
||||
label: Position de l'image
|
||||
type: select
|
||||
width: 1/2
|
||||
options:
|
||||
auto: "Centrée"
|
||||
0: "Alignée à gauche"
|
||||
8
public/site/blueprints/blocks/map.yml
Normal file
8
public/site/blueprints/blocks/map.yml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
name: Carte
|
||||
icon: map
|
||||
fields:
|
||||
map:
|
||||
label: Choisir la carte
|
||||
type: pages
|
||||
query: page.parent.parent.children.filterBy('intendedTemplate', 'carte')
|
||||
multiple: false
|
||||
9
public/site/blueprints/blocks/text.yml
Normal file
9
public/site/blueprints/blocks/text.yml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
name: field.blocks.text.name
|
||||
icon: text
|
||||
wysiwyg: true
|
||||
preview: text
|
||||
fields:
|
||||
text:
|
||||
type: writer
|
||||
nodes: true
|
||||
placeholder: field.blocks.text.placeholder
|
||||
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