We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14425
    • 2 Posts
    I’ve created a few sites complete with their own Contexts. I set rb_base_dir and rb_base_url for each site to subdirectories beneath what i’ve set for base_url. But when I create a template var as an Image and try to find an image the Resource Browser loads the dir for MODx itself instead. The base_url for each site is in a dir outside of the main MODx dir.

    Is there another setting I’m missing or is this a bug?

    Thanx.
      • 22303 MODX Staff
      • 10,725 Posts
      Quote from: joelnagy at Jul 11, 2009, 05:51 PM

      I’ve created a few sites complete with their own Contexts. I set rb_base_dir and rb_base_url for each site to subdirectories beneath what i’ve set for base_url. But when I create a template var as an Image and try to find an image the Resource Browser loads the dir for MODx itself instead. The base_url for each site is in a dir outside of the main MODx dir.

      Is there another setting I’m missing or is this a bug?
      Sounds like a bug, though sure would be nice to specify this per TemplateVar instance...
        • 25663 MODX Staff
        • 12,272 Posts
        +10,000 on per TV instance!
          Ryan Thrash, MODX Co-Founder
          Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
          • 3749
          • 24,544 Posts
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 14425
            • 2 Posts
            I took a look at the code and found that the config.js.php file (in core\model\modx\processors\system) doesn’t know the rb_base_url from the site specific config. I tried checking $modx->getOption(’rb_base_url’) here and it’s empty. But If I print $modx->getOption(’rb_base_url’) from a snippet it’s correct. So it seems that config.js.php doesn’t import the site config, I can’t seem to figure out though where the config is pulled in for config.js.php to get it.