[TYPO3-english] [HELP] - Add a menu on backend

Philipp Gampe philipp.gampe at typo3.org
Sat Jun 3 02:23:55 CEST 2017


Hi Neiljun Cataag,

Neiljun Cataag wrote:

> Hi, I'm developing a extension on typo3 v8 and I would like to put my
> extension at the backend menu.

You need to register a backend module in ext_tables.php. In case of extbase 
modules, this can be done the following way:

if (TYPO3_MODE === 'BE') {                                                                          
    /*                                                                                              
    * Registers a Backend Module                                                                    
    */                                                                                              
    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(                                    
        'YourVendorName.'.$_EXTKEY,                                                                     
        'web',    // Make module a submodule of 'web'                                               
        'tx_yourextensionkey_m1',    // Submodule key                                                            
        '',        // Position                                                                      
        array(                                                                                      
            'Product' => 'list,of,allowed,actions',
        ),                                                                                          
        array(                                                                                      
            'access' => 'user,group',                                                               
            'icon' => 'EXT:yourextensionkey/ext_icon.gif',                                                       
            'labels' => 'LLL:EXT:'.
$_EXTKEY.'/Resources/Private/Language/locallang_mod.xml',        
        )                                                                                           
    );                                                                                              
                                                                                                    
    /*                                                                                              
     * Add labels for context sensitive help (CSH)                                                  
     */                                                                                             
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_VendorTxYourextensionkeyM1', 
'EXT:'.$_EXTKEY.'/   Resources/Private/Language/locallang_csh.xml');
}         



Best regards
-- 
Philipp Gampe – PGP-Key 0AD96065 – LFCS
TYPO3 CMS Certified Integrator – Certified Developer – Active contributor
TYPO3 ... inspiring people to share!



More information about the TYPO3-english mailing list