Hi,
I have an issue with my modx installation. Whenever I upload an image and link it in the editor I can see the image in the CMS, but when I go to the front end site the images are broken. Can anyone help?
-
☆ A M B ☆
- 476 Posts
Could you provide a link to the site? That may help us a little in seeing what is wrong. Also, how are you setting up the Template Variable in your template? It’s probably not configured correctly and as a result it’s not linking to the image correctly. Could you provide the coding for the setup of the Template Variable for the image? With the little info you’re providing it’s hard to diagnose the problem.
Precision Web Development ... SmashStack.com
-
☆ A M B ☆
- 476 Posts
I just looked at the file path to your images and the images don’t exist there:
http://www.sportsmenslink.org/assets/images/State%20Caucus%20Leadership/Rep.MorrisGA.jpg
Precision Web Development ... SmashStack.com
Yes i know to use that in the templates. The images that are breaking are images that you enter using the Tiny MCE editor. For some reason, no matter what I do, Tiny MCE is forcing relative links. I’ve tried going into the PHP code and actually force the attribute:
relative_urls : false
but even that isn’t working. It is STILL converting to relative links. So I added the following to the tinymce functions.php
convert_urls: false
and thats breaking the images too. I’m absolutely astonished that this is even an issue. I’ve used joomla thousands of times and never even thought that this kind of problem could exist. Anyone have any more ideas?
Ok, I’ve been able to force Tiny MCE to only do absolute urls by implementing the before mentioned properties:
convert_urls: false,
relative_urls: false
I’m not sure why it wasn’t working before but everything seems fine now in the backend. However, when I save it, some php process runs and converts the urls back to relative urls!!??!??!?! I’ve quadrouple checked the database and the attribute for stripping images is 0 and in the CMS configuration it is the ’no’ option under rewrite browser asset paths. Can anyone else help me from here?