[TYPO3-dev] Can't edit record in table created from kickstarter

Brian Bendtsen bb at bellevuevej.dk
Tue Apr 22 13:31:17 CEST 2008


Hi

Using the kickstarter, I have created an extension with several tables 
but I can only edit one of them, the others are shown in the backend, 
but no fields are shown when I choose to edit a single record.

Here is the TCA definition from one of these tables, any hints on what 
Im missing?

ext_tables.php

t3lib_extMgm::allowTableOnStandardPages('tx_wkleague_sport');

$TCA["tx_wkleague_sport"] = array (
	"ctrl" => array (
		'title'     => 'LLL:EXT:wk_league/locallang_db.xml:tx_wkleague_sport',		
		'label'     => 'sport',	
		'tstamp'    => 'tstamp',
		'crdate'    => 'crdate',
		'cruser_id' => 'cruser_id',
		'type' => 'sport',	
		'default_sortby' => "ORDER BY crdate",	
		'delete' => 'deleted',	
		'enablecolumns' => array (		
			'disabled' => 'hidden',
		),
		'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
		'iconfile'          => 
t3lib_extMgm::extRelPath($_EXTKEY).'icon_tx_wkleague_sport.gif',
	),
	"feInterface" => array (
		"fe_admin_fieldList" => "hidden, sport, image",
	)
);

tca.php

$TCA["tx_wkleague_sport"] = array (
	"ctrl" => $TCA["tx_wkleague_sport"]["ctrl"],
	"interface" => array (
		"showRecordFieldList" => "hidden,sport,image"
	),
	"feInterface" => $TCA["tx_wkleague_sport"]["feInterface"],
	"columns" => array (
		'hidden' => array (		
			'exclude' => 1,
			'label'   => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
			'config'  => array (
				'type'    => 'check',
				'default' => '0'
			)
		),
		"sport" => Array (		
			"exclude" => 1,		
			"label" => 
"LLL:EXT:wk_league/locallang_db.xml:tx_wkleague_sport.sport",		
			"config" => Array (
				"type" => "input",	
				"size" => "30",	
				"max" => "50",	
				"eval" => "required,trim",
			)
		),
		"image" => Array (		
			"exclude" => 1,		
			"label" => 
"LLL:EXT:wk_league/locallang_db.xml:tx_wkleague_sport.image",		
			"config" => Array (
				"type" => "group",
				"internal_type" => "file",
				"allowed" => $GLOBALS["TYPO3_CONF_VARS"]["GFX"]["imagefile_ext"],	
				"max_size" => 500,	
				"uploadfolder" => "uploads/tx_wkleague",
				"show_thumbs" => 1,	
				"size" => 1,	
				"minitems" => 0,
				"maxitems" => 1,
			)
		),
	),
	"types" => array (
		"0" => array("showitem" => "hidden;;1;;1-1-1, sport, image")
	),
	"palettes" => array (
		"1" => array("showitem" => "")
	)
);

/Brian




More information about the TYPO3-dev mailing list