'singular' => 'page',
'plural' => 'pages'];
+ protected $defaultFieldAttributes = ['translatable' => true];
+
public function setFields()
{
parent::setFields();
'label' => 'Template',
'options' => $this->getTemplates(),
'column' => true,
- 'tab' => 'General',
+ 'tab' => 'Informations principales',
]);
$this->addField(['name' => 'name',
'type' => 'Text',
'column' => true,
'hint' => trans('for admin use'),
- 'tab' => 'General',
+ 'tab' => 'Informations principales',
]);
$this->addField(['name' => 'title',
'label' => trans('Page title'),
'type' => 'Text',
- ]);
-
- $this->addField(['name' => 'slug',
- 'type' => 'Slug',
- 'label' => 'Slug (URL)'
+ 'tab' => 'Informations principales',
]);
$this->_common();
'default' => '0',
'label' => __('Status'),
'options' => ['0' => __('Offline'), '1' => __('Published')],
- 'tab' => 'Général',
+ 'tab' => 'Informations principales',
]);
$this->_seo();
}
'label' => trans('backpack::pagemanager.meta_title'),
'type' => 'Text',
'hint' => trans('If empty, page title is used.') . ' ' . __('Recommended length: 60 chars'),
- 'tab' => 'Meta // SEO',
- 'store_in'=>'seo',
+ 'tab' => 'SEO // Meta',
+ 'store_in' => 'seo',
]);
+
+ $this->addField(['name' => 'slug',
+ 'type' => 'Slug',
+ 'label' => 'Slug (URL)',
+ 'tab' => 'SEO // Meta',
+ ]);
+
$this->addFakeField([
'name' => 'meta_description',
'label' => trans('backpack::pagemanager.meta_description'),
'type' => 'Textarea',
'hint' => __('Recommended length: 160 chars'),
- 'tab' => 'Meta // SEO',
- 'store_in'=>'seo',
+ 'tab' => 'SEO // Meta',
+ 'store_in' => 'seo',
]);
$this->addFakeField([
'name' => 'robots',
'label' => __('Allow page index by search engines'),
'type' => 'Checkbox',
'default' => true,
- 'tab' => 'Meta // SEO',
- 'store_in'=>'seo',
+ 'tab' => 'SEO // Meta',
+ 'store_in' => 'seo',
]);
}