Jump to main content Jump to doc navigation

Event: OnBeforeManagerPageInit

Loaded right before a manager controller is run and after checking permissions.

  • Service: 2 - Manager Access Events
  • Group: System

Event Parameters

Name Description
action The config array of current manager controller.
filename The filename of the controller being loaded. (Deprecated since 2.2)


Previous event OnManagerPageInit
Next event OnManagerPageBeforeRender
File core/model/modx/modmanagercontroller.class.php
Class abstract class modManagerController
Method public function render()


Such a plugin will display in the "Error log" which controller has loaded:

$eventName = $modx->event->name;
switch($eventName) {
    case 'OnBeforeManagerPageInit':

See Also