Browse Source

correctif configurefields

feature/ticket
Charly 3 years ago
parent
commit
f3d0b821c2
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      Controller/Admin/AbstractCrudController.php

+ 3
- 1
Controller/Admin/AbstractCrudController.php View File



public function configureFields(string $pageName): iterable public function configureFields(string $pageName): iterable
{ {
if ($this->isInstanceOf(SortableInterface::class)) {
$seoPanel = $confPanel = array();

if ($this->isInstanceOf(SeoInterface::class)) {
$seoPanel = [ $seoPanel = [
FormField::addPanel('seo')->setTemplateName('crud/field/generic'), FormField::addPanel('seo')->setTemplateName('crud/field/generic'),
TextField::new('metaTitle')->setLabel('Meta Title')->setHelp( TextField::new('metaTitle')->setLabel('Meta Title')->setHelp(

Loading…
Cancel
Save