How to Edit and update username from other table in tca file


  
How to Edit and update username from extended field of other table in typo3
OR
Edit and update username from other table.

Here below code you can use in tca.php file

'username' => array (		
 'exclude' => 0,		
 'label' => 'LLL:EXT:EXTENSION/locallang_db.xml:username',
 'config' => array (
  'type' => 'select',	
  'foreign_table' => 'fe_users',
  'foreign_table_where' => ' ORDER BY fe_users.uid desc ',
  'size' => 5,
  'minitems' => 0,
  'maxitems' => 1,	
  'wizards' => array(
   '_PADDING' =>2,
   '_VERTICAL' => 1,
   'add' => array(
    'type' => 'script',
    'title' => 'Create new record',
    'icon' => 'add.gif',
    'params' => array(
     'table' => 'fe_users',
     'pid' => '27',
     'setValue' => 'prepend'
    ),
    'script' => 'wizard_add.php',
   ),
   'list' => array(
    'type' =>'script',
    'title' =>'List',
    'icon' => 'list.gif',
    'params' => array(
     'table' => 'fe_users',
     'pid' =>'27',
    ),
    'script' => 'wizard_list.php',
   ),
   'edit'=> array(
    'type' => 'popup',
    'title' => 'Edit',
    'script' => 'wizard_edit.php',
    'popup_onlyOpenIfSelected' => 1,
    'icon' => 'edit2.gif',
    'JSopenParams' => 'height=350,width=580,status=0,menubar=0,
       scrollbars=1',
   ),
  ),
 )
),
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s