I must be missing something here. My images don’t show up in my web pages. When I display the page in the browser and right-click on the image holder, it lists a path of /about/assets/images/image.jpg . However, I know the image is actually at /assets/images/image.jpg
In the page html I have tried to set the image location manually to /assets/images/image.jpg but it always want to add the directory the current page is on.
Also, does the assets directory need to have permissions set to 777? It seemed this was the only way to make things work on another site where I wanted my images to show.
Thanks
Basically my problem is that ModX is not referencing the the correct location of the image file on the outputted page, even though it finds it correctly in /manager. It appears not to recognize the root (/) sysmbol in the file path that I enter and the automatically generated file path does not work either. I really would like to have my images displayed on my pages but for the life of me cannot figure out how to get this to work. Is this because I am using friendly URL’s? Or is there some configuration setting wrong somewhere? Any help would be greatly appreciated.
Thanks
The only solution that seems to work now (which is not a good one) is to move my page to the root level. Then the image path is right and the image displays OK. If I move the page back to be a child of the "About" page, the image link no longer works. Gosh it would be great to know what to do to fix this. . .
OK, I finally solved my own problem with a bit of weird luck. When I enter the image path in the page HTML, the program seems to strip away the "/" character at the beginning. So, I tried putting two root slashes intead (like this: "//") and now it works. However, each time I edit the image it will try to strip out one of those slashes.
Rats, now I cannot get the images to work once I edit the page. There are two problems: ModX wants to change the dimensions of the image and it does not find the image properly. Is this is a bug or is there some setting that is wrong somewhere?
Put it as <base href="[(site_url)]" /> in the head section. [(site_url)] is a variable and will be replaced with the url of your site.
The alternative is to put <base href="hxxp://www.mysite.com/" /> in the head section and don’t forget the trailing slash in the url.