namespace Lc\SovBundle\Container; | namespace Lc\SovBundle\Container; | ||||
use Lc\SovBundle\Component\ArrayComponent; | |||||
use Lc\SovBundle\Component\CitiesComponent; | use Lc\SovBundle\Component\CitiesComponent; | ||||
use Lc\SovBundle\Component\CookieComponent; | use Lc\SovBundle\Component\CookieComponent; | ||||
use Lc\SovBundle\Component\DateComponent; | use Lc\SovBundle\Component\DateComponent; |
]; | ]; | ||||
} | } | ||||
public function configurePanelMain(): array | |||||
public function configurePanelGeneral(): array | |||||
{ | { | ||||
return [ | return [ | ||||
'title', | 'title', | ||||
public function configurePanels(): array | public function configurePanels(): array | ||||
{ | { | ||||
return ['main', 'seo', 'conf']; | |||||
return ['general', 'seo', 'conf']; | |||||
} | } | ||||
public function configureFields(): array | public function configureFields(): array |
{ | { | ||||
return $this->andWhere('.status >= 0'); | return $this->andWhere('.status >= 0'); | ||||
} | } | ||||
/* | |||||
* POSITION | |||||
*/ | |||||
public function filterByPositionBiggerThan(int $position) | |||||
{ | |||||
return $this->andWhere('.position > :position')->setParameter('position', $position); | |||||
} | |||||
public function filterByPositionSmallerThan(int $position) | |||||
{ | |||||
return $this->andWhere('.position < :position')->setParameter('position', $position); | |||||
} | |||||
} | } | ||||
panels: | panels: | ||||
general: Général | general: Général | ||||
configuration: Configuration | configuration: Configuration | ||||
conf: Configuration | |||||
gallery: Galerie | gallery: Galerie | ||||
seo: Référencement | seo: Référencement | ||||
opengraph: Opengraph | opengraph: Opengraph |