[TYPO3-english] fe_user field modification

bernd wilke t3ng at bernd-wilke.net
Tue Jul 15 11:44:12 CEST 2014


Am 15.07.14 11:28, schrieb Katja Lampela:
> hi,
>
> 15.7.2014 9.23, bernd wilke kirjoitti:
>>
>> 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
>
> Yes thanks! It works now so that the title field is textarea and the
> module SYSTEM/Configuration shows excactly what I want. I have this now:
>
> $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;
> unset($GLOBALS['TCA']['fe_users']['columns']['title']['config']['eval']);
> unset($GLOBALS['TCA']['fe_users']['columns']['title']['config']['max']);
> unset($GLOBALS['TCA']['fe_users']['columns']['title']['config']['size']);
>
>
>
> Problem is, that saving the frontend user with more than 40 characters
> in title field gives error:
> 1: These fields are not properly updated in database: (title) Probably
> value mismatch with fieldtype.
>
> and the plus 40 chracters are cropped away.
>
> So it seems the field is maybe still defined as varchar somewhere.
>
> In short: It looks like a textarea, the configuration looks excactly
> right after installing the extension, but it still gives the error and
> acts like an input field.

if you need more characters in a field you need to redefine the database 
declaration too.
TCA is just for defining the BE-form.
so your extension also needs to enhance the database table in ext_tables.sql
and have dependencies in mind: your extension needs to be loaded after 
the initial definition!


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


More information about the TYPO3-english mailing list