Permalink
Browse files

MINOR: group ShowInMenus and ShowInSearch check boxes. Fixes #6901

  • Loading branch information...
1 parent 8531525 commit d4750c2a967cbbaeb03173b029d91407aba61adc @wilr wilr committed Apr 14, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −2 code/model/SiteTree.php
View
@@ -1898,8 +1898,10 @@ function getSettingsFields() {
)),
$parentIDField = new TreeDropdownField("ParentID", $this->fieldLabel('ParentID'), 'SiteTree', 'ID', 'MenuTitle')
),
- new CheckboxField("ShowInMenus", $this->fieldLabel('ShowInMenus')),
- new CheckboxField("ShowInSearch", $this->fieldLabel('ShowInSearch'))
+ $visibility = new FieldGroup(
+ new CheckboxField("ShowInMenus", $this->fieldLabel('ShowInMenus')),
+ new CheckboxField("ShowInSearch", $this->fieldLabel('ShowInSearch'))
+ )
),
$tabAccess = new Tab('Access',
$viewersOptionsField = new OptionsetField(
@@ -1918,6 +1920,8 @@ function getSettingsFields() {
)
);
+ $visibility->setTitle($this->fieldLabel('Visibility'));
+
/*
* This filter ensures that the ParentID dropdown selection does not show this node,
* or its descendents, as this causes vanishing bugs.
@@ -2001,6 +2005,7 @@ function fieldLabels($includerelations = true) {
$labels['CanViewType'] = _t('SiteTree.Viewers', 'Viewers Groups');
$labels['CanEditType'] = _t('SiteTree.Editors', 'Editors Groups');
$labels['Comments'] = _t('SiteTree.Comments', 'Comments');
+ $labels['Visibility'] = _t('SiteTree.Visibility', 'Visibility');
$labels['LinkChangeNote'] = _t (
'SiteTree.LINKCHANGENOTE', 'Changing this page\'s link will also affect the links of all child pages.'
);

0 comments on commit d4750c2

Please sign in to comment.