Edit administration panel layout
This commit is contained in:
parent
9c50caa6d7
commit
155b10cc9d
18 changed files with 75 additions and 252 deletions
|
@ -1,21 +0,0 @@
|
|||
title:
|
||||
en: Home
|
||||
fr: Accueil
|
||||
icon: list-bullet
|
||||
status:
|
||||
draft: true
|
||||
listed: true
|
||||
options:
|
||||
changeSlug:
|
||||
admin: true
|
||||
editor: false
|
||||
changeStatus: false
|
||||
changeTemplate: false
|
||||
changeTitle:
|
||||
admin: true
|
||||
editor: false
|
||||
delete: false
|
||||
duplicate: false
|
||||
tabs:
|
||||
content: tabs/exhibitions_content
|
||||
seo: tabs/exhibitions_seo
|
|
@ -1,21 +0,0 @@
|
|||
title:
|
||||
en: Gallery
|
||||
fr: Galerie
|
||||
icon: images
|
||||
status:
|
||||
draft: true
|
||||
listed: true
|
||||
options:
|
||||
changeSlug:
|
||||
admin: true
|
||||
editor: false
|
||||
changeStatus: false
|
||||
changeTemplate: false
|
||||
changeTitle:
|
||||
admin: true
|
||||
editor: false
|
||||
delete: false
|
||||
duplicate: false
|
||||
tabs:
|
||||
content: tabs/gallery_content
|
||||
seo: tabs/gallery_seo
|
5
site/blueprints/pages/home.yaml
Normal file
5
site/blueprints/pages/home.yaml
Normal file
|
@ -0,0 +1,5 @@
|
|||
title:
|
||||
en: Home
|
||||
fr: Accueil
|
||||
options:
|
||||
read: false
|
|
@ -1,57 +0,0 @@
|
|||
headline:
|
||||
en: Exhibitions
|
||||
fr: Expositions
|
||||
type: fields
|
||||
fields:
|
||||
exhibitions:
|
||||
label:
|
||||
en: Exhibitions
|
||||
fr: Expositions
|
||||
type: structure
|
||||
prepend: true
|
||||
sortable: true
|
||||
required: true
|
||||
fields:
|
||||
url:
|
||||
label:
|
||||
en: URL
|
||||
fr: URL
|
||||
type: url
|
||||
width: 2/4
|
||||
external_link:
|
||||
label:
|
||||
en: External link
|
||||
fr: Lien externe
|
||||
type: toggle
|
||||
text:
|
||||
-
|
||||
en: 'No'
|
||||
fr: Non
|
||||
-
|
||||
en: 'Yes'
|
||||
fr: Oui
|
||||
width: 1/4
|
||||
background_color:
|
||||
when:
|
||||
external_link: false
|
||||
label:
|
||||
en: Background color
|
||||
fr: Couleur de fond
|
||||
type: select
|
||||
options:
|
||||
feldgrau: Feldgrau
|
||||
white:
|
||||
en: White
|
||||
fr: Blanc
|
||||
default: feldgrau
|
||||
width: 1/4
|
||||
columns:
|
||||
url:
|
||||
width: 2/4
|
||||
external_link:
|
||||
width: 1/4
|
||||
background_color:
|
||||
width: 1/4
|
||||
|
||||
|
||||
|
|
@ -1,43 +0,0 @@
|
|||
type: fields
|
||||
fields:
|
||||
meta_description:
|
||||
label:
|
||||
en: Meta description
|
||||
fr: Méta description
|
||||
type: textarea
|
||||
size: small
|
||||
buttons: false
|
||||
help:
|
||||
en: "Short description of the page displayed by search engines and social networks (recommended maximum length: 160 characters). Home page meta description is used if this field is empty."
|
||||
fr: "Courte description de la page affichée par les moteurs de recherche et les réseaux sociaux (taille maximale conseillée : 160 caractères). La méta description de la page d'accueil est utilisée si ce champ est vide."
|
||||
width: 3/4
|
||||
gap:
|
||||
type: gap
|
||||
width: 1/4
|
||||
meta_image:
|
||||
label:
|
||||
en: Meta image
|
||||
fr: Méta image
|
||||
type: image-clip
|
||||
query: page.images
|
||||
uploads: image
|
||||
layout: cards
|
||||
image:
|
||||
cover: true
|
||||
back: white
|
||||
multiple: false
|
||||
clip:
|
||||
minwidth: 1200
|
||||
minheight: 675
|
||||
ratio: fixed
|
||||
help:
|
||||
en: "Image displayed by social networks (format: JPEG or PNG). Home page meta image is used if this field is empty."
|
||||
fr: "Image affichée par les réseaux sociaux (format : JPEG ou PNG). La méta image de la page d'accueil est utilisée si ce champ est vide."
|
||||
width: 1/4
|
||||
# Hidden fields
|
||||
og_type:
|
||||
type: hidden
|
||||
default: article
|
||||
twitter_card_type:
|
||||
type: hidden
|
||||
default: summary_large_image
|
|
@ -2,16 +2,6 @@ type: fields
|
|||
fields:
|
||||
contact_line:
|
||||
type: line
|
||||
email:
|
||||
label:
|
||||
en: Email
|
||||
fr: Adresse e-mail
|
||||
type: email
|
||||
required: true
|
||||
width: 1/2
|
||||
gap:
|
||||
type: gap
|
||||
width: 1/2
|
||||
instagram:
|
||||
type: url
|
||||
label:
|
||||
|
@ -20,3 +10,13 @@ fields:
|
|||
icon: instagram
|
||||
required: true
|
||||
width: 1/2
|
||||
contact_gap:
|
||||
type: gap
|
||||
width: 1/2
|
||||
email:
|
||||
label:
|
||||
en: Email
|
||||
fr: Adresse e-mail
|
||||
type: email
|
||||
required: true
|
||||
width: 1/2
|
22
site/blueprints/sections/site_content_exhibitions.yml
Normal file
22
site/blueprints/sections/site_content_exhibitions.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
headline:
|
||||
en: Exhibitions
|
||||
fr: Expositions
|
||||
type: fields
|
||||
fields:
|
||||
exhibitions:
|
||||
label:
|
||||
en: Exhibitions
|
||||
fr: Expositions
|
||||
type: structure
|
||||
prepend: true
|
||||
sortable: true
|
||||
required: true
|
||||
fields:
|
||||
url:
|
||||
label:
|
||||
en: URL
|
||||
fr: URL
|
||||
type: url
|
||||
|
||||
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
headline:
|
||||
en: Artworks
|
||||
fr: Œuvres
|
||||
en: Image gallery
|
||||
fr: Galerie d'images
|
||||
type: files
|
||||
template: full_screen_image
|
||||
min: 2
|
||||
layout: cards
|
||||
size: small
|
||||
limit: 60
|
||||
limit: 10
|
||||
image:
|
||||
ratio: 1/1
|
||||
back: white
|
|
@ -1,16 +0,0 @@
|
|||
headline:
|
||||
en: Pages
|
||||
fr: Pages
|
||||
type: pages
|
||||
templates:
|
||||
- exhibitions
|
||||
- gallery
|
||||
sortBy: title desc
|
||||
create: false
|
||||
layout: cards
|
||||
size: small
|
||||
image:
|
||||
ratio: 1/1
|
||||
cover: true
|
||||
query: page.images.template('full_screen_image').first
|
||||
back: white
|
|
@ -10,9 +10,9 @@ fields:
|
|||
# required: true
|
||||
help:
|
||||
en: "Short description of the page displayed by search engines and social networks (recommended maximum length: 160 characters)."
|
||||
fr: "Courte description de la page affichée par les moteurs de recherche et les réseaux sociaux (taille maximale conseillée : 160 caractères)."
|
||||
fr: "Courte description du site web affichée par les moteurs de recherche et les réseaux sociaux (taille maximale conseillée : 160 caractères)."
|
||||
width: 3/4
|
||||
gap:
|
||||
seo_gap:
|
||||
type: gap
|
||||
width: 1/4
|
||||
meta_image:
|
||||
|
@ -20,7 +20,7 @@ fields:
|
|||
en: Meta image
|
||||
fr: Méta image
|
||||
type: image-clip
|
||||
query: page.images
|
||||
query: site.images
|
||||
layout: cards
|
||||
image:
|
||||
cover: true
|
|
@ -3,4 +3,5 @@ title:
|
|||
fr: Site web
|
||||
tabs:
|
||||
content: tabs/site_content
|
||||
seo: tabs/site_seo
|
||||
analytics: tabs/site_analytics
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
label:
|
||||
en: Content
|
||||
fr: Contenu
|
||||
icon: text
|
||||
sections:
|
||||
exhibitions: sections/exhibitions_content_exhibitions
|
||||
contact: sections/exhibitions_content_contact
|
||||
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
label:
|
||||
en: SEO
|
||||
fr: Référencement
|
||||
icon: search
|
||||
sections:
|
||||
seo_basic_meta: sections/exhibitions_seo_metadata
|
|
@ -1,6 +0,0 @@
|
|||
label:
|
||||
en: Content
|
||||
fr: Contenu
|
||||
icon: text
|
||||
sections:
|
||||
artworks: sections/gallery_content_images
|
|
@ -1,6 +1,8 @@
|
|||
label:
|
||||
en: Website
|
||||
fr: Site web
|
||||
icon: home
|
||||
en: Content
|
||||
fr: Contenu
|
||||
icon: text
|
||||
sections:
|
||||
pages: sections/site_content_pages
|
||||
exhibitions: sections/site_content_exhibitions
|
||||
artworks: sections/site_content_images
|
||||
contact: sections/site_content_contact
|
||||
|
|
|
@ -3,4 +3,4 @@ label:
|
|||
fr: Référencement
|
||||
icon: search
|
||||
sections:
|
||||
seo_basic_meta: sections/generic_seo_metadata
|
||||
seo_basic_meta: sections/site_seo_metadata
|
Loading…
Add table
Add a link
Reference in a new issue