Skip to content
This repository
Browse code

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

  • Loading branch information...
commit d4750c2a967cbbaeb03173b029d91407aba61adc 1 parent 8531525
Will Rossiter authored April 14, 2012

Showing 1 changed file with 7 additions and 2 deletions. Show diff stats Hide diff stats

  1. 9  code/model/SiteTree.php
9  code/model/SiteTree.php
@@ -1898,8 +1898,10 @@ function getSettingsFields() {
1898 1898
 						)),
1899 1899
 						$parentIDField = new TreeDropdownField("ParentID", $this->fieldLabel('ParentID'), 'SiteTree', 'ID', 'MenuTitle')
1900 1900
 					),
1901  
-					new CheckboxField("ShowInMenus", $this->fieldLabel('ShowInMenus')),
1902  
-					new CheckboxField("ShowInSearch", $this->fieldLabel('ShowInSearch'))
  1901
+					$visibility = new FieldGroup(
  1902
+						new CheckboxField("ShowInMenus", $this->fieldLabel('ShowInMenus')),
  1903
+						new CheckboxField("ShowInSearch", $this->fieldLabel('ShowInSearch'))
  1904
+					)
1903 1905
 				),
1904 1906
 				$tabAccess = new Tab('Access',
1905 1907
 					$viewersOptionsField = new OptionsetField(
@@ -1918,6 +1920,8 @@ function getSettingsFields() {
1918 1920
 			)
1919 1921
 		);
1920 1922
 		
  1923
+		$visibility->setTitle($this->fieldLabel('Visibility'));
  1924
+		
1921 1925
 		/*
1922 1926
 		 * This filter ensures that the ParentID dropdown selection does not show this node,
1923 1927
 		 * or its descendents, as this causes vanishing bugs.
@@ -2001,6 +2005,7 @@ function fieldLabels($includerelations = true) {
2001 2005
 		$labels['CanViewType'] = _t('SiteTree.Viewers', 'Viewers Groups');
2002 2006
 		$labels['CanEditType'] = _t('SiteTree.Editors', 'Editors Groups');
2003 2007
 		$labels['Comments'] = _t('SiteTree.Comments', 'Comments');
  2008
+		$labels['Visibility'] = _t('SiteTree.Visibility', 'Visibility');
2004 2009
 		$labels['LinkChangeNote'] = _t (
2005 2010
 			'SiteTree.LINKCHANGENOTE', 'Changing this page\'s link will also affect the links of all child pages.'
2006 2011
 		);

0 notes on commit d4750c2

Please sign in to comment.
Something went wrong with that request. Please try again.