We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12147
    • 182 Posts
    if the Resource URL and Resource Path configuration options are set properly then everything should work fine.

    It would be enormously appreciated if someone could clearly explain **what these are**. Examples are most welcome.

    I have tried every translation I can imagine of the directions I have found, and I am still getting a blank screen when FCKeditor opens, and therefore cannot create any links, document or image.

    **Here is what I’m using (in all the places below): http://www.domain.com/assets/**

    As I understand it, these settings must be entered in:
    1. Manager Users > User setting
    2. Tools > Configuration > Interface & Features
    3. Tools > Configuration > File Manager

    Please correct me if I’m wrong. Assume you’re talking to someone who knows nothing, which is probably true. sad

    Thank you!
      • 4310
      • 2,310 Posts
      Examples from my sites, local and two different web hosting companies:
      Local Machine set up :
      File Manager Path: C:/wamp/www/dev/
      Resource path: C:/wamp/www/dev/assets/
      Resource URL: http://localhost/dev/assets/

      Type 1 Web Hosting set up :
      File Manager Path:  var/www/vhosts/yourdomain.com/httpdocs/
      Resource path: var/www/vhosts/yourdomain.com/httpdocs/assets/
      Resource URL: http://www.yourdomain.com/assets/

      Type 2 Web Hosting set up :
      File Manager Path:  /home/sites/yourdomain.com/public_html/
      Resource path:/home/sites/yourdomain.com/public_html/assets/
      Resource URL: http://www.yourdomain.com/assets/


      Don’t forget to make sure folders have permissions set to allow editing/uploading.
        • 12147
        • 182 Posts
        Re: Permissions, should this be 777 ? (Assets, Files, Images seem to be 755 before any changes.)

        Re: Resource Path, well, I guess I was waaay off. How do I determine this?? My hosting account holds only one folder/domain, which is named "domain.com"

        At least it looks as though I didn’t muff the Resource URL, but I sure would welcome ideas as to how to figure the Resource Path....
          • 7231
          • 4,205 Posts
          You have it right, the settings are set in the locations you specify.

          You may have the wrong path information.
          1. Manager Users > User setting
          This one is for individual users. You can have different settings for each user.
          2. Tools > Configuration > Interface & Features
          Here you need to set both the Resource Path and the Resource URL. The path will be a file path like ’domain/root/assets’ - this is just an example setting. The URL is almost always ’assets/’ - Note: you should have the <base> tag in your site header in order for the url to point to the right place.
          3. Tools > Configuration > File Manager
          This is not related to the editor, this is for the File Manager built in to the manager (Resources > Manage Files).

          Hope this helps.

          EDIT: you can find this info by checking the phpinfo in the Reports > System Info under DOCUMENT_ROOT.
            [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

            Something is happening here, but you don&#39;t know what it is.
            Do you, Mr. Jones? - [bob dylan]
            • 12147
            • 182 Posts
            Thanks - first question... wink

            EDIT: you can find this info by checking the phpinfo in the Reports > System Info under DOCUMENT_ROOT.

            It says "no value" - translation? (or maybe better put: solution?)



            EDIT: Maybe a better question to ask is whether there is any way to reset to the original entries?
              • 12147
              • 182 Posts
              I have too many questions; I’m sorry, and hope I can ask some more...

              1. This is clear. Thanks!

              2. This isn’t quite clear (to me):
              The path will be a file path like ’domain/root/assets’ - this is just an example setting
              Let’s use my "domain.com" - would this then be ’domain.com/root/assets/’? Or is there somewhere I can find this (as it should be) in phpinfo, too?

              Note: you should have the <base> tag in your site header in order for the url to point to the right place.

              Could you explain this further, please? Not sure what <base> tag is...

              3. If I get "no value" in phpinfo for doc_root, does this mean the File Manager does not have a handle on all the files?

              Thank you very much for your trouble!
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                Sending environment values like DOCUMENT_ROOT is often blocked at the server end for security reasons, or simply the server is not configured to send that value.

                Do not be confusing a URL (http://www.mydomain.com/whatever) with a filesystem path! They are two different things! One begins where your web server puts its HTML files (like index.php) and the other is where the server stores its files.

                The sure way to find out is to go to the phpinfo() link in Reports -> System Information. Scroll to the bottom, where all the SERVER values are listed, and look for _SERVER["SCRIPT_FILENAME"]. On my local environment, it says
                /Applications/MAMP/htdocs/0962/manager/index.php
                so for my paths I need
                /Applications/MAMP/htdocs/0962/assets/
                A common Linux hosting path will look like
                /home/domain-or-username/public_html
                so the path needed would be
                /home/domain-or-username/public_html/assets/

                The <base> tags mentioned is a meta tag that goes in your template’s head:
                <base href="[(base_url)]"></base>

                The style of using a closing tag is to make IE play nice with it.
                  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