Image Path

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
mpoelman
New Member
New Member
Posts: 2
Joined: Mon Oct 01, 2012 6:55 pm

Image Path

Post by mpoelman »

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!
rooon
Forum Members
Forum Members
Posts: 113
Joined: Mon Dec 05, 2011 4:40 pm

Re: Image Path

Post by rooon »

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
mpoelman
New Member
New Member
Posts: 2
Joined: Mon Oct 01, 2012 6:55 pm

Re: Image Path

Post by mpoelman »

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.
uniqu3

Re: Image Path

Post by uniqu3 »

Possibly you are missing base tag in your Template.

Code: Select all

<base href="http://your-domain.com/" />
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

Re: Image Path

Post by psy »

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).
Post Reply

Return to “The Lounge”