We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13629
    • 23 Posts
    In TinyMCE, the user is allowed to insert images. However, the images the user inserts on my site do not show up because of a path discrepancy. My modx installation is in http://mysite.com/modx/ and the images inserted by the user show up with img tag src attributes like "images/file.jpg". Obviously, the path needs to be "/modx/images/file.jpg" in order for the image to actually show up.

    A solution that would work (but is bad) would be to manually change each path to "/modx/images/file.jpg". I’m guessing there’s some way to concatenate the MODx base_path into the front of each image path or something.

    Is there a good way to display images that the user inserted using TinyMCE?

    Thanks,
    Jason
      • 23299
      • 1,161 Posts
      I think you can create an empty "images" folder and FTP it into your working template folder...
        • 36416
        • 589 Posts
        Quote from: jasonswett at May 31, 2008, 06:07 PM

        Is there a good way to display images that the user inserted using TinyMCE?

        Do you have BASE tag in your template’s HEAD section?
        <base href="http://mysite.com/modx/" />