[TYPO3-english] fe_user field modification
    Katja Lampela 
    katja.lampela at lieska.net
       
    Tue Jul 15 11:28:56 CEST 2014
    
    
  
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.
-- 
Kind regards,
Katja Lampela
www.lieska.net
    
    
More information about the TYPO3-english
mailing list