-
- 23 Posts
I have created a template variable, so the client can upload images on each page. Uploading them saves them to the same images folder as the MODx logo, so I know that it’s going to the correct folder, but the webpage is then unable to retrieve it, and simply lists the path to the file, rather than displaying the image itself ie. assets/images/picname.jpg. i have played around with the File Manager Path, File base path, and File Browser Url, but to no avail, so I have returned these all to the default: /home/sitename/public_html/assets/. I tried changing it to: /home/sitename/www/assets/ as the installation is in the www folder, but it didn’t make any difference. I can’t think where else I could be going wrong. I’d be really grateful for any advice as I’m at a brick wall. It was a standard installation, no renamed files/folders, and I installed directly to the remote server, so I haven’t had to redirect any paths to files.
Many thanks
Vicky
If the resource browser uploads and then displays the images correctly in itself, then your paths are fine.
Did you add
<base href="[(site_url)]" />
to your template head along with the rest of the meta tags?
-
- 23 Posts
Hi Susan
Many thanks for responding - yes, I have the <base href="[(site_url)]"></base> tag just above the title. I’m really baffled as to what the problem would be, as all the images in my css files are being referenced with no problems.
All the best
Vicky
Ah, wait a minute. Reading your post again, is this what is happening? Instead of getting a proper image tag like
<img src="path-to-image" alt="" />
you’re just getting
If this is the case, you need to set an "image" type
output widget for the TV, and fill out its attributes as desired.
-
- 23 Posts
Yes, you’re absolutely right. Thank you so much. That fixed it!