[TYPO3-core] RFC: #10596: Hook for Usersettings (sysext:setup)
Steffen Kamper
info at sk-typo3.de
Tue Mar 3 16:15:14 CET 2009
Hi,
this is a SVN patch request.
Type: Feature (Enhancement)
Bugtracker references:
http://bugs.typo3.org/view.php?id=10596
Branches: trunk
If you want to use the usersettings to save own data, you need a hook to
a) extend the form with own fields (or manipulate existing ones)
b) catch posted data to verify and put it to BE_USER->uc
Attached patch implements a hook in sysext setup to allow this.
Additional infos:
for usage here is an example how to set the hook in ext_localconf.php:
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['setup']['processUserSettingPost'][]
=
'EXT:myextension/class.usersetupsettingshook.php:tx_userSetupSettingsHook';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['setup']['manipulateUserSettingFields'][]
=
'EXT:myextension/class.usersetupsettingshook.php:tx_userSetupSettingsHook';
Example of the hook class is attached too.
vg Steffen
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 10596_setuphook.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090303/6b9a5c92/attachment.txt
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: class.usersetupsettingshook.php
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090303/6b9a5c92/attachment-0001.txt
More information about the TYPO3-team-core
mailing list