Mode archive ajouter pour visionner les linear avec l'ancien champs corp plus ajout du nouveau champs corp avec block
This commit is contained in:
parent
861cc67ccc
commit
bb5d12cb36
3 changed files with 56 additions and 3 deletions
|
|
@ -5,4 +5,4 @@ headings:
|
||||||
marks:
|
marks:
|
||||||
- bold
|
- bold
|
||||||
- italic
|
- italic
|
||||||
- link
|
- link
|
||||||
36
site/blueprints/fields/bodyBlocks.yml
Normal file
36
site/blueprints/fields/bodyBlocks.yml
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
label: Corps
|
||||||
|
type: blocks
|
||||||
|
default:
|
||||||
|
- type: heading
|
||||||
|
content:
|
||||||
|
level: h2
|
||||||
|
fieldsets:
|
||||||
|
heading:
|
||||||
|
name: field.blocks.heading.name
|
||||||
|
icon: title
|
||||||
|
wysiwyg: true
|
||||||
|
preview: heading
|
||||||
|
fields:
|
||||||
|
level:
|
||||||
|
label: field.blocks.heading.level
|
||||||
|
type: toggles
|
||||||
|
empty: false
|
||||||
|
default: "h3"
|
||||||
|
labels: false
|
||||||
|
options:
|
||||||
|
- value: h3
|
||||||
|
icon: h3
|
||||||
|
text: H3
|
||||||
|
text:
|
||||||
|
extends: fields/body
|
||||||
|
label: false
|
||||||
|
placeholder: field.blocks.heading.placeholder
|
||||||
|
text:
|
||||||
|
name: Texte
|
||||||
|
icon: text
|
||||||
|
wysiwyg: true
|
||||||
|
fields:
|
||||||
|
text:
|
||||||
|
extends: fields/body
|
||||||
|
label: false
|
||||||
|
image: true
|
||||||
|
|
@ -26,10 +26,27 @@ tabs:
|
||||||
label: Chapo
|
label: Chapo
|
||||||
extends: fields/body
|
extends: fields/body
|
||||||
help: optionnel
|
help: optionnel
|
||||||
body:
|
isArchiveMode:
|
||||||
extends: fields/body
|
label: Mode archive
|
||||||
|
type: toggle
|
||||||
|
width: 1/4
|
||||||
|
help: |
|
||||||
|
Actif : l'ancien champ body sera affiché dans le panel (texte sans médias). Utile pour éditer d'anciens articles uniquement.
|
||||||
when:
|
when:
|
||||||
isHtmlMode: false
|
isHtmlMode: false
|
||||||
|
bodyBlocks:
|
||||||
|
extends: fields/bodyBlocks
|
||||||
|
width: 3/4
|
||||||
|
when:
|
||||||
|
isHtmlMode: false
|
||||||
|
isArchiveMode: false
|
||||||
|
body:
|
||||||
|
extends: fields/body
|
||||||
|
help: Anciens champs conservés pour archive (ne pas remplir pour les nouveaux articles)
|
||||||
|
width: 3/4
|
||||||
|
when:
|
||||||
|
isHtmlMode: false
|
||||||
|
isArchiveMode: true
|
||||||
htmlBody:
|
htmlBody:
|
||||||
label: Corps
|
label: Corps
|
||||||
type: textarea
|
type: textarea
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue