[TASK] Add rowDescription for fe_users 45/51745/2
authorJosef Glatz <josefglatz@gmail.com>
Sat, 18 Feb 2017 19:48:41 +0000 (20:48 +0100)
committerBenni Mack <benni@typo3.org>
Fri, 24 Feb 2017 05:46:08 +0000 (06:46 +0100)
Add a description field also for fe_users records which
could be used as for already known other record types.

Resolves: #79894
Releases: master
Change-Id: Ia1d7ad7746a0b7dd3ebb809864e290db97ac228d
Reviewed-on: https://review.typo3.org/51745
Tested-by: TYPO3com <no-reply@typo3.com>
Tested-by: Riccardo De Contardi <erredeco@gmail.com>
Reviewed-by: Thomas Hohn <thomas@hohn.dk>
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Tested-by: Joerg Boesche <typo3@joergboesche.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/frontend/Configuration/TCA/fe_users.php
typo3/sysext/frontend/ext_tables.sql

index 4e64f62..9f55b47 100644 (file)
@@ -2,6 +2,7 @@
 return [
     'ctrl' => [
         'label' => 'username',
+        'descriptionColumn' => 'description',
         'default_sortby' => 'ORDER BY username',
         'tstamp' => 'tstamp',
         'crdate' => 'crdate',
@@ -17,10 +18,10 @@ return [
             'default' => 'status-user-frontend'
         ],
         'useColumnsForDefaultValues' => 'usergroup,lockToDomain,disable,starttime,endtime',
-        'searchFields' => 'username,name,first_name,last_name,middle_name,address,telephone,fax,email,title,zip,city,country,company'
+        'searchFields' => 'username,name,first_name,last_name,middle_name,address,telephone,fax,email,title,zip,city,country,company,description'
     ],
     'interface' => [
-        'showRecordFieldList' => 'username,password,usergroup,lockToDomain,name,first_name,middle_name,last_name,title,company,address,zip,city,country,email,www,telephone,fax,disable,starttime,endtime,lastlogin'
+        'showRecordFieldList' => 'username,password,usergroup,lockToDomain,name,first_name,middle_name,last_name,title,company,address,zip,city,country,email,www,telephone,fax,disable,starttime,endtime,lastlogin,description'
     ],
     'columns' => [
         'username' => [
@@ -248,6 +249,14 @@ return [
                 ]
             ]
         ],
+        'description' => [
+            'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.description',
+            'config' => [
+                'type' => 'text',
+                'rows' => 5,
+                'cols' => 48
+            ]
+        ],
         'TSconfig' => [
             'exclude' => true,
             'label' => 'TSconfig:',
@@ -282,6 +291,8 @@ return [
                     lockToDomain, TSconfig,
                 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
                     disable,--palette--;;timeRestriction,
+                --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
+                    description,
                 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
             ',
         ],
index d0f0cd7..df809c1 100644 (file)
@@ -87,6 +87,7 @@ CREATE TABLE fe_users (
        cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
        lockToDomain varchar(50) DEFAULT '' NOT NULL,
        deleted tinyint(3) unsigned DEFAULT '0' NOT NULL,
+       description text,
        uc blob,
        title varchar(40) DEFAULT '' NOT NULL,
        zip varchar(10) DEFAULT '' NOT NULL,