public function getCMSFields() {
		$fields = parent::getCMSFields();

		$modes = array(
			''		=> 'No filing',
			'day'	=> '/Year/Month/Day',
			'month'	=> '/Year/Month',
			'year'	=> '/Year'
		);
		$fields->addFieldToTab('Root.Main', new DropdownField('FilingMode', _t('NewsHolder.FILING_MODE', 'File into'), $modes), 'Content');
		$fields->addFieldToTab('Root.Main', new DropdownField('FileBy', _t('NewsHolder.FILE_BY', 'File by'), array('Published' => 'Published', 'Created' => 'Created')), 'Content');
		$fields->addFieldToTab('Root.Main', new CheckboxField('PrimaryNewsSection', _t('NewsHolder.PRIMARY_SECTION', 'Is this a primary news section?'), true), 'Content');

		$fields->addFieldToTab('Root.Main', new DropdownField('OrderBy', _t('NewsHolder.ORDER_BY', 'Order by'), array('OriginalPublishedDate' => 'Published', 'Created' => 'Created')), 'Content');
		$fields->addFieldToTab('Root.Main', new DropdownField('OrderDir', _t('NewsHolder.ORDER_DIR', 'Order direction'), array('DESC' => 'Descending date', 'ASC' => 'Ascending date')), 'Content');
		
		$this->extend('updateNewsHolderCMSFields', $fields);

		return $fields;
	}
public function getCMSFields() {
		$fields = parent::getCMSFields();

		$modes = array(
			''		=> 'No filing',
			'day'	=> '/Year/Month/Day',
			'month'	=> '/Year/Month',
			'year'	=> '/Year'
		);
		$fields->addFieldToTab('Root.Main', new DropdownField('FilingMode', _t('NewsHolder.FILING_MODE', 'File into'), $modes), 'Content');
		$fields->addFieldToTab('Root.Main', new DropdownField('FileBy', _t('NewsHolder.FILE_BY', 'File by'), array('Published' => 'Published', 'Created' => 'Created')), 'Content');
		$fields->addFieldToTab('Root.Main', new CheckboxField('PrimaryNewsSection', _t('NewsHolder.PRIMARY_SECTION', 'Is this a primary news section?'), true), 'Content');

		$fields->addFieldToTab('Root.Main', new DropdownField('OrderBy', _t('NewsHolder.ORDER_BY', 'Order by'), array('OriginalPublishedDate' => 'Published', 'Created' => 'Created')), 'Content');
		$fields->addFieldToTab('Root.Main', new DropdownField('OrderDir', _t('NewsHolder.ORDER_DIR', 'Order direction'), array('DESC' => 'Descending date', 'ASC' => 'Ascending date')), 'Content');
		
		$this->extend('updateNewsHolderCMSFields', $fields);

		return $fields;
	}
public function getCMSFields ( ) { $ fields = parent :: getCMSFields ( ) ; $ modes = array ( '' => 'No filing' , 'day' => '/Year/Month/Day' , 'month' => '/Year/Month' , 'year' => '/Year' ) ; $ fields -> addFieldToTab ( 'Root.Main' , new DropdownField ( 'FilingMode' , _t ( 'NewsHolder.FILING_MODE' , 'File into' ) , $ modes ) , 'Content' ) ; $ fields -> addFieldToTab ( 'Root.Main' , new DropdownField ( 'FileBy' , _t ( 'NewsHolder.FILE_BY' , 'File by' ) , array ( 'Published' => 'Published' , 'Created' => 'Created' ) ) , 'Content' ) ; $ fields -> addFieldToTab ( 'Root.Main' , new CheckboxField ( 'PrimaryNewsSection' , _t ( 'NewsHolder.PRIMARY_SECTION' , 'Is this a primary news section?' ) , true ) , 'Content' ) ; $ fields -> addFieldToTab ( 'Root.Main' , new DropdownField ( 'OrderBy' , _t ( 'NewsHolder.ORDER_BY' , 'Order by' ) , array ( 'OriginalPublishedDate' => 'Published' , 'Created' => 'Created' ) ) , 'Content' ) ; $ fields -> addFieldToTab ( 'Root.Main' , new DropdownField ( 'OrderDir' , _t ( 'NewsHolder.ORDER_DIR' , 'Order direction' ) , array ( 'DESC' => 'Descending date' , 'ASC' => 'Ascending date' ) ) , 'Content' ) ; $ this -> extend ( 'updateNewsHolderCMSFields' , $ fields ) ; return $ fields ; }
Gets the fields to display for this news holder in the CMS

@return FieldSet
Gets the fields to display for this news holder in the CMS