Jump to main content Jump to doc navigation

Heads up: when you use custom manager themes or templates, you will need to make sure everything works as expected after upgrading MODX. It's not uncommon for custom manager templates to conflict with core changes.

This about customizing the manager and its templates. For example if you want a customized manager login form.

The MODX manager uses a template much like regular MODX pages. The manager's template files live inside of manager/templates/default directory. You can update the system setting for the manager_theme to point to the new directory.

The way this is set up is just like extending a PHP class: you can override any single file by mimicking the directory structure and updating the manager_theme directory.

For 2.1 and earlier, you must copy the entire controllers and templates directory for your theme. 2.2 and later let you copy single files.

For example, to customize just the Manager Login template, you could copy the following file into a new directory:

manager/templates/default/security/login.tpl

Copy that file into a new directory, for example here:

manager/templates/custom/security/login.tpl

Then update your System Setting for manager_theme to point to the newly created custom directory, and the version of the file from the custom directory will override the version of the file from the default directory.

You'll also have to copy this directory:

manager/controllers/default

to a new directory with the same name as your new custom them directory, like so:

manager/controllers/custom

This is because when you change the manager_theme key value in System Settings it will also reference the new controllers directory. Of course you can probably change the path for that somewhere...

Support the team building MODX with a monthly donation.

The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.

Backers

  • modmore
  • STERC
  • Digital Penguin
  • Jens Wittmann – Gestaltung & Entwicklung
  • Fabian Christen
  • Dannevang Digital
  • Sepia River Studios
  • Chris Fickling
  • CrewMark
  • deJaya
  • Lefthandmedia
  • Murray Wood
  • eydolan
  • Following Sea
  • Anton Tarasov
  • Stéphane Jäggi
  • Raffy
  • Snow Creative
  • A. Moreno
  • Nick Clark
  • JT Skaggs
  • Helen
  • YJ
  • krisznet
  • Richard
  • Yanni

Budget

$301 per month—let's make that $500!

Learn more