heimrichhannot/contao-backend_admin_menu

Extends the contao backend with a menu containing useful shortcuts.

1.0.12 2017-05-09 12:57 UTC

This package is not auto-updated.

Last update: 2023-01-21 09:42:32 UTC


README

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'
);