Skip to content

heimrichhannot/contao-backend_admin_menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backend Admin Menu

Extends the contao backend with a menu containing useful shortcuts.

alt Preview

Preview

Features

Currently available actions

  • regenerate the internal cache
  • open composer
  • open the page for updating the database
  • open autoload creator

Technical instructions

Add a new action

Simply add a new entry to $GLOBALS['TL_CONFIG']['backendAdminMenuActions']

$GLOBALS['TL_CONFIG']['backendAdminMenuActions']['generate_internal_cache'] = array(
    // either use a direct url...
    'href' => 'contao/main.php?do=composer',
    // ... or a callback as href
    'href' => array('Some\Namespace\SomeClass', 'someMethod'),
    'icon' => 'system/modules/some/icon.png'
);