[TYPO3] $tempColumns ??

Aji Johannes aji.yahya at gmail.com
Tue Aug 15 19:37:49 CEST 2006


Hallo List,

i have an Question about ext_tables.php.

there is an $tempColumns type = select for saving Author  from a list, 
and i want to make an default and must be 0 or null. or something like 
text in the select box: "Select one". because if i save the page will 
save the first author with id = 1 because it is selected by default.

this is my script:


$tempColumns = Array (
	"tx_xxxx" => Array (		
		"exclude" => 0,		
		"label" =>"LLL:EXT:xxxx/locallang_db.php:pages.tx_xxxx",
				
		"config" => Array (
			"type" => "select",	
			"foreign_table" => "tx_xxxx",	
			"foreign_table_where" => "ORDER BY tx_xxxx.uid",	
			"size" => 1,	
			"minitems" => 0,
			"maxitems" => 1,
			"default" => "0",	
			"wizards" => Array(
			"_PADDING" => 2,
			"_VERTICAL" => 1,
			
			"list" => Array(
					"type" => "script",
					"title" => "List",
					"icon" => "list.gif",
					"params" => Array(
					"table"=>"tx_xxxx",
					"pid" => "###CURRENT_PID###",
							),
					"script" => "wizard_list.php",
				),
			),
			
			
		)
	),
);


t3lib_div::loadTCA("pages");
t3lib_extMgm::addTCAcolumns("pages",$tempColumns,1);
t3lib_extMgm::addToAllTCAtypes("pages","tx_xxxx;;;;1-1-1","","after:nav_title");


please i need your help.

thank you for replying.
Aji




More information about the TYPO3-english mailing list