We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30319
    • 406 Posts
    I've got one multi-site context working within both localhost and production sites.

    Problem is specifying directories/folders for these contexts so TinyMCE knows the right directory to look for images and so the right folder is selected for files to upload/download in File Manager.

    The folder for the subdomain is a separate folder "outside" the modx install directory...I have links and stylesheet references working properly, have not yet tested javascripts...

    HOW do I tell the context where to look for files/images so the images display correctly within the new context??

    Do I use TinyMCE base URL setting??

    Thank you, Tom [ed. note: TomMLS last edited this post 14 years, 8 months ago.]
      • 3109 ☆ A M B ☆
      • 894 Posts
      I think if you make a new context setting for the second domain with:

      key= filemanager_path

      you should be able to specify the directory for that context, let me know if that works.

      Good Luck.
        Benjamin Marte
        Interactive Media Developer
        Follow Me on Twitter | Visit my site | Learn MODX
        • 30319
        • 406 Posts
        yea...this old bug report I found I think will get me started after I finish eating something...I learned from it that I can set an absolute path etc.

        http://bugs.modx.com/issues/4785

        thank you!! smiley tom
          • 30319
          • 406 Posts
          Tried the above, still not working, TinyMCE in MANAGER!! still looks to the wrong place...

          Context settings for subdomain
          filemanager_path = /home/foo/public_html/board/media/
          filemanager_path_relative = No
          filemanager_url = http://board.mountainlakeservices.org/media/
          filemanager_url_relative = No
          tiny.base_url = http://board.mountainlakeservices.org/media/

          but TinyMCE never looks in that context-correct file manager url, it goes to http://www.mountainlakeservices.org/etc/etc/etc/

          How do I fix this??

          Thank you, Tom