Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Image Path Issue?


Go to End


2781 Views

Avatar
mjxxx

2 Posts

10 September 2007 at 6:39pm

I am experiencing a problem when attempting to insert an image into a page using the CMS.

The image uploads without a problem and appears in the CMS and on my homepage without fail. However it seems that the image path is:

img src="assets/folderName/imageName.jpg"

This works fine for the homepage and for the CMS but if on a nested page the image does not show up as the browser is looking for the following:

http://siteName.com/nested-page/assets/folderName/imageName.jpg

rather than

/assets/folderName/imageName.jpg

Am I doing something wrong? Is anyone else experiencing this problem?

How can I set all of my images to default to "/" THEN the image directory/folderName/imageName.jpg?

Any help would be much appreciated. Apologies if this question has already been answered (or if the solution is simple).

No - changing the image path in the CMS pop-up image properties window does not seem to work.

THANKS!