Browse Source

Merge branch 'develop' of https://gitea.laclic.fr/Laclic/CaracoleSkeleton into develop

master
Fab 3 years ago
parent
commit
b364a2c5f6
2 changed files with 16 additions and 8 deletions
  1. +12
    -0
      config/packages/liip_imagine/base.yaml
  2. +4
    -8
      src/Controller/Admin/PageCrudController.php

+ 12
- 0
config/packages/liip_imagine/base.yaml View File

driver: "gd" driver: "gd"
filter_sets: filter_sets:
cache: ~ cache: ~
thumbnail:
quality: 90
filters:
thumbnail:
size: [60]
mode: outbound
page: page:
quality: 90 quality: 90
filters: filters:
thumbnail: thumbnail:
size: [ 600, 400 ] size: [ 600, 400 ]
mode: outbound mode: outbound
big:
quality: 90
filters:
thumbnail:
size: [ 1600 ]
mode: outbound

+ 4
- 8
src/Controller/Admin/PageCrudController.php View File

use Lc\SovBundle\Field\CKEditorField; use Lc\SovBundle\Field\CKEditorField;
use Lc\SovBundle\Field\FileManagerField; use Lc\SovBundle\Field\FileManagerField;
use Lc\SovBundle\Field\GalleryManagerField; use Lc\SovBundle\Field\GalleryManagerField;
use Lc\SovBundle\Field\ImageManagerField;
use Lc\SovBundle\Field\StatusField;


class PageCrudController extends AbstractCrudController class PageCrudController extends AbstractCrudController
{ {
return [ return [
TextField::new('title'), TextField::new('title'),
CKEditorField::new('description'), CKEditorField::new('description'),
FileManagerField::new('image'),
ChoiceField::new('status')
->setChoices(['En ligne' => 1, 'Hors ligne' => 0])
->setFormTypeOption('expanded', false)
->setFormTypeOption('multiple', false)
->setCustomOption('widget', false)
->setTemplatePath('@LcSov/adminlte/crud/field/status.html.twig'),
ImageManagerField::new('image'),
StatusField::new('status'),
GalleryManagerField::new('gallery'), GalleryManagerField::new('gallery'),
TextField::new('devAlias'), TextField::new('devAlias'),

]; ];
} }



Loading…
Cancel
Save