We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27408
    • 33 Posts
    Right now it is not possible to place the config file(s) for Wayfinder in a different place then in the Wayfinder directory without changing the code in the Wayfinder snippet. I would like to be able to place the config file somewhere else in the MODx Revo directory. The components directory is gitignored (and with good reason) thus changes to the config files are not tracked at all.
    I’m not really looking into changing the Wayfinder code on my own to suite my desire to be able to place the config file anywhere. So therefore I request a small change to the Wayfinder snippet code:

    /* include a custom config file if specified */
    if (isset($scriptProperties['config'])) {
        $scriptProperties['config'] = str_replace('../','',$scriptProperties['config']);
        $scriptProperties['config'] = $wayfinder_base.'configs/'.$scriptProperties['config'].'.config.php';
    } else {
        $scriptProperties['config'] = $wayfinder_base.'configs/default.config.php';
    }
    


    into this:

    /* include a custom config file if specified */
    if (isset($scriptProperties['config'])) {
        $scriptProperties['config'] = str_replace('../','',$scriptProperties['config']);
        $scriptProperties['config'] = $modx->getOption('base_path').$scriptProperties['config'].'.config.php';
    } else {
        $scriptProperties['config'] = $wayfinder_base.'configs/default.config.php';
    }
    


    That way you are able to place the config file anywhere you want inside the MODx directory.
      • 34954
      • 12 Posts
      GrafitoStudio Reply #2, 15 years ago
      I would second this request.

      I can´t find where to upload the configuration file, can you help?

      Also are evolution config files compatibles with revo?