[TYPO3-core] RFC: #9368: Feature: Hook in setup for additional tabs
Steffen Kamper
info at sk-typo3.de
Wed Sep 17 17:35:01 CEST 2008
Hi,
i missed something if we don't want to display data only - a second hook
is needed to compute the submitted data.
These hooks are not only for adding new tab, you also can modify
existing (delete or add stuff to) or modify/validate submitted data
attached is a new patch with both hooks.
vg Steffen
Steffen Kamper schrieb:
> Hi,
>
> This is an SVN patch request.
>
> Type: Feature
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=9368
>
> Branches: trunk
>
> This hook allows to add additional tabs to user settings.
>
> Example:
> $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['setup']['additionalMenuItems'][]
> = 'tx_setupMenu->addMenuToSetup';
>
> class tx_setupMenu {
> function addMenuToSetup($menuItems, $pObj) {
> #debug($menuItems);
> $menuItems[] = array (
> 'label' => 'Ext settings',
> 'content' => $pObj->doc->spacer(20) . '<h3
> style="color:red;">Hello from ext!</h3>'
> );
> }
> }
>
> vg Steffen
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 9368_setup_hook2.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080917/408a485b/attachment.txt
More information about the TYPO3-team-core
mailing list