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

Rupert Germann rupi at gmx.li
Sun Sep 20 00:08:54 CEST 2009


hi Steffen,

+1 by reading and testing with applied 10585v8

greets
rupert

Steffen Kamper schrieb:
> 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
> 


More information about the TYPO3-team-core mailing list