redesign blueprint
This commit is contained in:
parent
61c1067f22
commit
55684b6079
12 changed files with 82 additions and 49 deletions
13
site/blueprints/pages/articles.yml
Normal file
13
site/blueprints/pages/articles.yml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
title: Articles
|
||||
|
||||
columns:
|
||||
- width: 1/2
|
||||
fields:
|
||||
categories:
|
||||
type: tags
|
||||
- width: 1/2
|
||||
sections:
|
||||
yearsSection:
|
||||
label: Années
|
||||
type: pages
|
||||
template: year
|
||||
|
|
@ -3,7 +3,13 @@ image:
|
|||
icon: calendar
|
||||
back: black
|
||||
|
||||
sections:
|
||||
articles:
|
||||
type: pages
|
||||
template: article
|
||||
columns:
|
||||
- width: 1/3
|
||||
sections:
|
||||
articles:
|
||||
type: pages
|
||||
template: article
|
||||
- width: 2/3
|
||||
fields:
|
||||
edito:
|
||||
type: textarea
|
||||
|
|
|
|||
|
|
@ -3,16 +3,15 @@ title: Site
|
|||
tabs:
|
||||
contentTab:
|
||||
label: Contenu
|
||||
sections:
|
||||
fieldsSection:
|
||||
label: Contenu
|
||||
type: fields
|
||||
columns:
|
||||
- width: 1/3
|
||||
sections:
|
||||
informativePages:
|
||||
label: Pages d'informations
|
||||
type: pages
|
||||
template: static
|
||||
- width: 2/3
|
||||
fields:
|
||||
categories:
|
||||
type: tags
|
||||
edito:
|
||||
label: Éditorial
|
||||
type: writer
|
||||
categoriesSection:
|
||||
label: Années
|
||||
type: pages
|
||||
template: year
|
||||
|
|
|
|||
|
|
@ -1,5 +1,28 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'debug' => true
|
||||
'debug' => true,
|
||||
'panel' => [
|
||||
'menu' => [
|
||||
'site' => [
|
||||
'label' => 'Accueil',
|
||||
'current' => function ($current) {
|
||||
$path = Kirby::instance()->request()->path()->toString();
|
||||
return Str::contains($path, 'site');
|
||||
}
|
||||
],
|
||||
'articles' => [
|
||||
'icon' => 'folder',
|
||||
'label' => 'Articles',
|
||||
'link' => 'pages/articles',
|
||||
'current' => function ($current) {
|
||||
$path = Kirby::instance()->request()->path()->toString();
|
||||
return Str::contains($path, 'pages/articles');
|
||||
}
|
||||
],
|
||||
'-',
|
||||
'users',
|
||||
'system'
|
||||
]
|
||||
]
|
||||
];
|
||||
0
site/templates/articles.php
Normal file
0
site/templates/articles.php
Normal file
Loading…
Add table
Add a link
Reference in a new issue