[TYPO3-english] fe_user field modification

bernd wilke t3ng at bernd-wilke.net
Tue Jul 15 08:23:40 CEST 2014


Am 14.07.14 16:53, schrieb Katja Lampela:
> Hi,
>
> 5.6.2014 9.33, bernd wilke kirjoitti:
>> just create an extension (depending on fe_users) which modifies just the
>> TCA-declaration for this field.
>> be aware of the changed mechanism for 6.2:
>>
>> EXT:myext/Configuration/TCA/tca.php
>> EXT:myext/Configuration/TCA/Overrides/fe_users.php
>>
>>
>> [1] http://docs.typo3.org/typo3cms/TCAReference/ExtendingTca/Index.html
>
> Thank you Bernd for this.
>
> I'm now searching how to modify the title field in the files.
>
> In backend module SYSTEM/Configuration and the menu "GLOBALS['TCA'] ..."
> I find how to make the right rows, they are:
>
> $GLOBALS['TCA']['fe_users']['columns']['title']['config']['type'] = 'text';
> $GLOBALS['TCA']['fe_users']['columns']['title']['config']['cols'] = 20;
> $GLOBALS['TCA']['fe_users']['columns']['title']['config']['rows'] = 5;
>
> So I need these: 'cols', 'rows' and 'type'.
>
> But there are also 'eval', 'max' and 'size'. These I want to remove.
> Anyone know how I could do that?

what about:
unset($GLOBALS['TCA']['fe_users']['columns']['title']['config']['eval']);

or just:
$GLOBALS['TCA']['fe_users']['columns']['title']['config']['eval'] = '';
$GLOBALS['TCA']['fe_users']['columns']['title']['config']['max'] = 99999;


bernd
-- 
http://www.pi-phi.de/cheatsheet.html


More information about the TYPO3-english mailing list