[TYPO3] Make BE field required with TS

Tapio Markula tapio.markula at dnainternet.net
Wed May 17 18:39:19 CEST 2006


Lucas Birk wrote:
> Hi Søren,
> 
> Thanks for the tip about quixplorer..I did not have access 
> tca.php...until now!
> It worked perfectly with the exception that 'default' => '0' had to be 
> 'default' => '' otherwise it did not recognize that the form field was 
> empty!
> I still wonder if its possible with pageTS to set this.

I think that there is not TS for that.
Make a small extension, where you gather changes for TCA-setting
in ext_tables.php file


$tempColumns = Array (
		'alias' => Array (
		  'exclude' => 1,		
			'label' => 'LLL:EXT:cms/locallang_tca.php:pages.alias',
			'config' => Array (
				'type' => 'input',
				'size' => '10',
				'max' => '20',
				'eval' => 'nospace,alphanum_x,lower,unique',
				'softref' => 'notify'
			)
		),
... // other changed
);

t3lib_extMgm::addTCAcolumns("pages",$tempColumns,1); // this adds and 
overrides original settings.

$tempColumns = Array (...

t3lib_extMgm::addTCAcolumns("tt_news",$tempColumns,1);

...



More information about the TYPO3-english mailing list