[TYPO3-english] Re: Properly extend fe_users table in Extbase Extension Builder

Mitja mitja.orlic at gmail.com
Thu Aug 8 16:38:14 CEST 2013


Never mind. I found it out eventually.

For those who might be stuck as I was, you need to do this: (TYPO3 6.1)

1. In extbase extension builder name the extended table fe_users for your model.
2. In the Model you are extending fe_users instead of extending abstractEntity extend this: 

class MyClass extends \TYPO3\CMS\Extbase\Domain\Model\FrontendUser {

}

3.In the extension TCA (ext_tables.php) add this:

$TCA['fe_users']['columns']['tx_extbase_type']['config']['items'][] = array('LLL:EXT:ag_loket/Resources/Private/Language/locallang_db.xlf:fe_users.tx_extbase_type.Tx_AgLoket_Pridelovalec','Tx_AgLoket_Pridelovalec');

$TCA['fe_users']['types']['Tx_MyExt_MyClass'] = $TCA['fe_users']['types']['0'];
$TCA['fe_users']['types']['Tx_MyExt_MyClass']['showitem'] .= ',--div--;LLL:EXT:ag_loket/Resources/Private/Language/locallang_db.xlf:tx_agloket_domain_model_kmetija,';
$TCA['fe_users']['types']['Tx_MyExt_MyClass']['showitem'] .= '';

I think this will be it since the Typoscript has been already taken care of by the ext. builder.


More information about the TYPO3-english mailing list