Dear,
I have just installed CMSMS 1.11.2 together with Seotools2.
When i insert an image in the editor, it is not visible on the website.
I looked in the source, the image url is uploads/folder/file.jpg.
When i change with firebug the url to /uploads/folder.file.jpg it works fine. However, everytime when i change it in the html, it put itselfs back to the version without the /.
Can someone tell me what the problem is? Is there something i do wrong?
Thank you!
Image Path
Re: Image Path
Hi mpoelman,
Did you upload the image "file.jpg" in subdriectory "folder" of the uploads directory?
If so, then use in your template or pages
relative path: folder/file.jpg (without leading '/')
or an absolute path: {root_url}/uploads/folder/file.jpg
If you use file.jpg in the css, then use
[[root_url]]/uploads/folder/file.jpg
Have fun, Rooon
Did you upload the image "file.jpg" in subdriectory "folder" of the uploads directory?
If so, then use in your template or pages
relative path: folder/file.jpg (without leading '/')
or an absolute path: {root_url}/uploads/folder/file.jpg
If you use file.jpg in the css, then use
[[root_url]]/uploads/folder/file.jpg
Have fun, Rooon
Re: Image Path
Dear,
That is not my problem. In the templates it is ok, because i can put the complete url there.
The problem is the WYSIWYG editor. When i upload an image in the dir, and edit a page in the editor, I put an image in the page with the editor. In the editor it works fine. On the website, the image is not visible. I looked in the source. The path is "uploads/images/file.jpg" instead of /uploads/images/file.jpg. So there is missing an / before uploads.
That is not my problem. In the templates it is ok, because i can put the complete url there.
The problem is the WYSIWYG editor. When i upload an image in the dir, and edit a page in the editor, I put an image in the page with the editor. In the editor it works fine. On the website, the image is not visible. I looked in the source. The path is "uploads/images/file.jpg" instead of /uploads/images/file.jpg. So there is missing an / before uploads.
Re: Image Path
Possibly you are missing base tag in your Template.
Code: Select all
<base href="http://your-domain.com/" />
Re: Image Path
unique3 is correct.
With SEOTools2 you can instruct it to print out the base tag with the parameter, 'showbase=1' OR leave the {metadata} tag in your template (which outputs the <base> tag by default).
With SEOTools2 you can instruct it to print out the base tag with the parameter, 'showbase=1' OR leave the {metadata} tag in your template (which outputs the <base> tag by default).