[TYPO3-core] RFC: #12008: User setup miss a function for inserting fields at a position

Steffen Kamper info at sk-typo3.de
Sat Sep 19 20:05:25 CEST 2009


Hi,

this is an SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=12008

Branches: trunk

Problem:
There are functions for TCA like t3lib_extMgm::addTCAcolumns, 
t3lib_extMgm::addToAllTCAtypes etc. which makes it easy to insert a 
field(list) at a defined position.

This functionality is missing for TYPO3_USER_SETTINGS, though all needed 
is already in t3lib_extMgm. This leads to constructs like
$GLOBALS['TYPO3_USER_SETTINGS']['showitem'] = str_replace(',password2,', 
',password2,tx_openid_openid,', 
$GLOBALS['TYPO3_USER_SETTINGS']['showitem']);

which isn't nice and shows lack of API

Solution:
Add such function:
t3lib_extMgm::addFieldsToUserSettings($fieldList, $insertionPosition = '')

the above construct would now possible with:
t3lib_extMgm::addFieldsToUserSettings('tx_openid_openid', 
'after:password2');

vg Steffen
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 12008.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090919/9f79cb75/attachment.txt 


More information about the TYPO3-team-core mailing list