[TYPO3] itemsProcFunc problem

Oliver Schröder typo3 at oliverschroeder.de
Fri May 12 17:18:58 CEST 2006


Hi list,

I want to change the contents of a backend dropdown using itemsProcFunc. 
My function is called but the return value seems not to reach the form.

The debug data (see function below) is displayed (and $params['items'] 
contains the correct entries). But the form still shows the unchanged data.

Any idea? Any example to look at?

Cheers,
Oliver


The function called:		
...
function user_getSubchannelOnPage($params, $conf) {
	unset($params['items']); //clear old items in dropdown
	$params['items'] = array();
	// ... some code that refills the dropdown
	debug($params['items']);
	return $params;
}
...



ext_tables.php:
	"tx_dmhindex_subchannel" => Array (		
		"exclude" => 1,		
		"label" => 
"LLL:EXT:dmhindex/locallang_db.php:pages.tx_dmhindex_subchannel",		
		"config" => Array (
			"type" => "select",	
			"foreign_table" => "tx_dmhindex_subchannel",	
			"foreign_table_where" => "AND 
tx_dmhindex_subchannel.pid=###STORAGE_PID### ORDER BY 
tx_dmhindex_subchannel.uid",	
			"itemsProcFunc" => "user_GlobalData->user_getSubchannelOnPage",
			"size" => 1,	
			"minitems" => 0,
			"maxitems" => 1,
		)



More information about the TYPO3-english mailing list