Feature #23094 ยป patch_addBirthdayAndGenderToFeUsersTable.diff
typo3/sysext/lang/locallang_general.xml (working copy) | ||
---|---|---|
<label index="LGL.caption">Caption:</label>
|
||
<label index="LGL.subheader">Subheader:</label>
|
||
<label index="LGL.text">Text:</label>
|
||
<label index="LGL.gender">Gender:</label>
|
||
<label index="LGL.gender.I.1">Male</label>
|
||
<label index="LGL.gender.I.2">Female</label>
|
||
<label index="LGL.name">Name:</label>
|
||
<label index="LGL.first_name">First name:</label>
|
||
<label index="LGL.middle_name">Middle name:</label>
|
||
<label index="LGL.last_name">Last name:</label>
|
||
<label index="LGL.birthday">Birthday:</label>
|
||
<label index="LGL.title">Title:</label>
|
||
<label index="LGL.title_person">Title:</label>
|
||
<label index="LGL.address">Address:</label>
|
typo3/sysext/cms/ext_tables.sql (working copy) | ||
---|---|---|
first_name varchar(50) DEFAULT '' NOT NULL,
|
||
middle_name varchar(50) DEFAULT '' NOT NULL,
|
||
last_name varchar(50) DEFAULT '' NOT NULL,
|
||
gender int(1) unsigned DEFAULT '0' NOT NULL,
|
||
birthday int(11) unsigned DEFAULT '0' NOT NULL,
|
||
address varchar(255) DEFAULT '' NOT NULL,
|
||
telephone varchar(20) DEFAULT '' NOT NULL,
|
||
fax varchar(20) DEFAULT '' NOT NULL,
|
typo3/sysext/cms/tbl_cms.php (working copy) | ||
---|---|---|
$TCA['fe_users'] = array(
|
||
'ctrl' => $TCA['fe_users']['ctrl'],
|
||
'interface' => array(
|
||
'showRecordFieldList' => 'username,password,usergroup,lockToDomain,name,title,company,address,zip,city,country,email,www,telephone,fax,disable,starttime,endtime,lastlogin'
|
||
'showRecordFieldList' => 'username,password,usergroup,lockToDomain,gender,name,birthday,title,company,address,zip,city,country,email,www,telephone,fax,disable,starttime,endtime,lastlogin'
|
||
),
|
||
'feInterface' => $TCA['fe_users']['feInterface'],
|
||
'columns' => array(
|
||
... | ... | |
'softref' => 'substitute'
|
||
)
|
||
),
|
||
'gender' => array(
|
||
'exclude' => 1,
|
||
'label' => 'LLL:EXT:lang/locallang_general.php:LGL.gender',
|
||
'config' => array(
|
||
'type' => 'select',
|
||
'size' => 1,
|
||
'maxitems' => 1,
|
||
'minitems' => 0,
|
||
'items' => array(
|
||
array('LLL:EXT:lang/locallang_general.php:LGL.gender.I.0', '0'),
|
||
array('LLL:EXT:lang/locallang_general.php:LGL.gender.I.1', '1'),
|
||
array('LLL:EXT:lang/locallang_general.php:LGL.gender.I.2', '2'),
|
||
)
|
||
)
|
||
),
|
||
'name' => array(
|
||
'exclude' => 1,
|
||
'label' => 'LLL:EXT:lang/locallang_general.php:LGL.name',
|
||
... | ... | |
'max' => '50'
|
||
)
|
||
),
|
||
'birthday' => array(
|
||
'exclude' => 1,
|
||
'label' => 'LLL:EXT:lang/locallang_general.php:LGL.birthday',
|
||
'config' => array(
|
||
'type' => 'input',
|
||
'size' => '8',
|
||
'max' => '20',
|
||
'eval' => 'date',
|
||
'default' => '0',
|
||
'checkbox' => '0'
|
||
)
|
||
),
|
||
'address' => array(
|
||
'exclude' => 1,
|
||
'label' => 'LLL:EXT:lang/locallang_general.php:LGL.address',
|
||
... | ... | |
'types' => array(
|
||
'0' => array('showitem' => '
|
||
disable,username;;;;1-1-1, password, usergroup, lastlogin;;;;1-1-1,
|
||
--div--;LLL:EXT:cms/locallang_tca.xml:fe_users.tabs.personelData, company;;1;;1-1-1, name;;2;;2-2-2, address, zip, city, country, telephone, fax, email, www, image;;;;2-2-2,
|
||
--div--;LLL:EXT:cms/locallang_tca.xml:fe_users.tabs.personelData, company;;1;;1-1-1, name;;2;;2-2-2, birthday, address, zip, city, country, telephone, fax, email, www, image;;;;2-2-2,
|
||
--div--;LLL:EXT:cms/locallang_tca.xml:fe_users.tabs.options, lockToDomain;;;;1-1-1, TSconfig;;;;2-2-2,
|
||
--div--;LLL:EXT:cms/locallang_tca.xml:fe_users.tabs.access, starttime, endtime,
|
||
--div--;LLL:EXT:cms/locallang_tca.xml:fe_users.tabs.extended
|
||
... | ... | |
),
|
||
'palettes' => array(
|
||
'1' => array('showitem' => 'title'),
|
||
'2' => array('showitem' => 'first_name,--linebreak--,middle_name,--linebreak--,last_name')
|
||
'2' => array('showitem' => 'gender,first_name,--linebreak--,middle_name,--linebreak--,last_name')
|
||
)
|
||
);
|
||