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.
-
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
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.