I use Moxiemanager as a standalone plugin (just including moxman.loader.min.js
).
This file calls api.php
, where MOXMAN
class initialises with default config.php
file.
// Load default config
if (!isset($moxieManagerConfig)) {
$moxieManagerConfig = array();
require_once(MOXMAN_ROOT . '/config.php');
}
What would be the best way to pick different configs for different pages?
For example on 1 page i would like to change autoformat rules and on another change folder path.
Can i pass a parameter somehow? Or define a constant?