Skip to content

Commit

Permalink
bugfix - update ShowTitle field (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirish committed Jan 18, 2019
1 parent 9b6947c commit 49a0cce
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Model/BaseElementObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,9 @@ public function getCMSFields()
$fields->removeByName('ShowTitle');
$fields->replaceField(
'Title',
TextCheckboxGroupField::create(
TextField::create('Title', _t(BaseElement::class . '.TitleLabel', 'Title (displayed if checked)')),
CheckboxField::create('ShowTitle', _t(BaseElement::class . '.ShowTitleLabel', 'Displayed'))
)->setName('TitleAndDisplayed')
TextCheckboxGroupField::create()
->setName('Title')
);
// $fields->dataFieldByName('Title')->setDescription('Optional. Display a Title with this feature.');

$image = $fields->dataFieldByName('Image')
->setDescription('Optional. Display an image with this feature.')
Expand Down

0 comments on commit 49a0cce

Please sign in to comment.