We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36924 ☆ A M B ☆
    • 298 Posts
    I have my localhost WAMP setup like this: C:\wamp\www\sitefolder (I want the new media source to be located at C:\newMediaSource)

    and online host linu/apache setup like this: home/hostaccountusername/public_html/sitefolder (the account hosts several sites. so each is placed in a folder. I want the new media source to be located at home/hostaccountusername/newMediaSource)

    In both instance what will BasePath URL web root setting be?

    I know ../ takes you one level up the folder structure but how do you set this?
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      If this is outside of the web root, then no URL will make any sense, since you can't access files outside of the web root with a URL. The Base Path should be the full path to the directory you want to use, and its "Relative" should be set to No.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 36924 ☆ A M B ☆
        • 298 Posts
        Thanks. Now solved.
          • 20413
          • 2,877 Posts
          Old thread. FWIW here is a simple snippet to output text files stored in core/share/ above root:

          [[getProtectedFile?name=`securitytest.txt`]]

          <?php
          include $modx->getOption('core_path').'share/'.$name;
          
            @hawproductions | http://mrhaw.com/

            Infograph: MODX Advanced Install in 7 steps:
            http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

            Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
            http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower