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?
Ok, i found that the easiest way would be just to have a separate folder for images with
mc_accessfile where we can redefine the settings.rootpathto this folder injsms_accessfile with redefined settings.