Skip to content

Commit

Permalink
Merge pull request #133 from creative-commoners/pulls/2.0/name-compos…
Browse files Browse the repository at this point in the history
…ite-title

NEW Give composite Title and Displayed field a name so it can be identified by extensions easily
  • Loading branch information
NightJar committed Oct 30, 2017
2 parents b430b58 + e40f798 commit 88b8129
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Models/BaseElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ public function getCMSFields()
TextField::create('Title', ''),
CheckboxField::create('ShowTitle', _t(__CLASS__ . '.ShowTitleLabel', 'Displayed'))
)
->setName('TitleAndDisplayed')
->setTemplate(__CLASS__ . '\\FieldGroup')
->setTitle(_t(__CLASS__ . '.TitleLabel', 'Title (not displayed unless specified)'))
);
Expand Down

0 comments on commit 88b8129

Please sign in to comment.