[TYPO3-dev] $TCA['fe_users']['columns'] question

Pieter pieter.v at gmx.net
Sun Apr 23 23:21:52 CEST 2006


Hello all,

for the back-end fe_user record, I would like to make a select box for 
the country instead of simply the country name in an input field.

My code looks like this:
$tempColumns = Array (
   'static_info_country' => Array (
     'displayCond' => 'EXT:static_info_tables:LOADED:true',
     'config' => Array (
       'type' => 'select',
       'items' => Array (
         Array('',0),
       ),
       'foreign_table' => 'static_countries',
       'foreign_table_where' => 'AND static_countries.pid=0 ORDER BY 
static_countries.cn_official_name_local',
       'size' => 1,
       'minitems' => 0,
       'maxitems' => 1,
     ),
)
t3lib_extMgm::addTCAcolumns('fe_users',$tempColumns,1);

This works but not as I would like it to.  The uid of the country is 
used in the fe_users table.  I would like to see the cn_iso_3 instead in 
the fe_users table.

My code is based on the Typo3 core_doc manual but I can't find anything 
in that manual that might solve this problem.

Can this be done?

Regards,
Pieter




More information about the TYPO3-dev mailing list