We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4429
    • 429 Posts
    When i add images via tinymce content editor I am being the shown the absolute URL in the Image URL section.

    The problem is that the absoulte URL doesn’t not seem to work i.e the image does not show. If however I delte everythign and start the url at /assets/images/imagename.jpg then it works fine, until i try to edit the page again, when the editor then changes the URL to absolute again.

    Any ideas on this one?

    The site is at

    www.uttingsinsurance.co.uk

    Thanks
      • 9575
      • 19 Posts
      I had this problem. To remedy it I went to the manager, then Manage resources, Plugins, TinyMCE, Configuration, then set "path options" to rootrelaticve, not docrelative.

      Hope that helps
        • 32013
        • 24 Posts
        Hi C-M,

        I had the same problem after restoring the Database from other web hosting and re-configuring MODx in the new web hosting. Tried this, it might solve your problem:

        From "Tools >> Configuration >> Interface & Features tab >> Resource path":
        - Change the path to full path i.e. root/my_domain_user_id/public_html/MODx_installed_folder/assets/"
        ** In my case as after I restoring the database the _SERVER["DOCUMENT_ROOT"] has changed to "root/my_domain_user_id/public_html"
        ** Your can check the Resource path by checking _SERVER["DOCUMENT_ROOT"] from "Report >> System Info >> phpinfo() by clickng the View link >> scroll down until you see PHP Variables"

        From "Tools >> Configuration >> Interface & Features tab >> Resource URL":
        - Change to "/MODx_installed_folder/assets/"
        ** Make sure you include "/" in the path

        .. Wayne.

          • 36926
          • 701 Posts
          Quote from: felikz at Mar 27, 2009, 05:40 AM

          I had this problem. To remedy it I went to the manager, then Manage resources, Plugins, TinyMCE, Configuration, then set "path options" to rootrelaticve, not docrelative.

          Hope that helps

          felikz - Nice one, just been having a similar problem where TinyMCE would seem to remove part of the path even if i typed the absolute path via the html window. It wouldn’t let me even access root level, it always removed the first /. So /assets would just become assets so would break on friendly URL pages.

          But this has sorted it. Do you know what exactly this is doing.

          Thanks

          Ben
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            It determines if the path will be relative to the site root, or to the index.php document (which may or may not work out to be the same thing)
              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
              • 36926
              • 701 Posts
              Quote from: sottwell at Jul 09, 2009, 12:16 AM

              It determines if the path will be relative to the site root, or to the index.php document (which may or may not work out to be the same thing)

              Ah ok, makes sense now why having friendly URLs with friendly alias path turned wasn’t working.

              Thanks