System Events

From MODx Wiki

Jump to: navigation, search

A System Event is triggered at a certain time during script execution using the invokeEvent function. It allows developers to inject pieces of code (known as plugins) in to the framework without having to edit the MODx core.

Contents

Frontend System Events

These events are called at various times during frontend execution, to see when these events are called, see Order of execution.

Template Service Events

Template Service Events are all the events that relate to the display of a page in the MODx CMS. Here is a list of all Template Service Events as of version 0.9.5.

Cache Service Events

Cache Service Events relate to the cache files maintained in the /assets/cache/ directory of the MODx CMS. This is a list of all Cache Service Events as of version 0.9.5.

Parser Service Events

Parser Service Events include miscellaneous events invoked during DocumentParser execution.

Web Access Service Events

Web Access Service Events are called from within the WebLogin snippet.

Backend System Events

These events are called while using the Manager Interface.

Manager Access Events

Manager Access Events involve various actions having to do with manager users, and logging in/out.

Chunks

Chunk System Events involve actions during manipulation of chunks.

Documents

Document System Events are related to document manipulation (creation, modification, duplication, etc.).

Modules

  • OnBeforeModFormDelete
  • OnBeforeModFormSave
  • OnModFormDelete
  • OnModFormPrerender
  • OnModFormRender
  • OnModFormSave

Plugins

  • OnBeforePluginFormDelete
  • OnBeforePluginFormSave
  • OnPluginFormDelete
  • OnPluginFormPrerender
  • OnPluginFormRender
  • OnPluginFormSave

RichText Editor Events

The two RichText Editor Events are for use when creating an alternative javascript text editor.

Snippets

  • OnBeforeSnipFormDelete
  • OnBeforeSnipFormSave
  • OnSnipFormDelete
  • OnSnipFormPrerender
  • OnSnipFormRender
  • OnSnipFormSave

System Settings

  • OnFriendlyURLSettingsRender
  • OnInterfaceSettingsRender
  • OnMiscSettingsRender
  • OnSiteSettingsRender
  • OnUserSettingsRender

Template Variables

  • OnBeforeTVFormDelete
  • OnBeforeTVFormSave
  • OnTVFormDelete
  • OnTVFormPrerender
  • OnTVFormRender
  • OnTVFormSave

Templates

  • OnBeforeTempFormDelete
  • OnBeforeTempFormSave
  • OnTempFormDelete
  • OnTempFormPrerender
  • OnTempFormRender
  • OnTempFormSave

Users

  • OnBeforeUserFormDelete
  • OnBeforeUserFormSave
  • OnUserFormDelete
  • OnUserFormPrerender
  • OnUserFormRender
  • OnUserFormSave

Web Users

  • OnBeforeWUsrFormDelete
  • OnBeforeWUsrFormSave
  • OnWUsrFormDelete
  • OnWUsrFormPrerender
  • OnWUsrFormRender
  • OnWUsrFormSave
Personal tools