GetSimple Support Forum

Full Version: Inserting images to a page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there,
I really appreciate the simple
Full post:
-----------
Hi there,
I really appreciate GetSimple cms but i don't understand why i have to put the full url of my images in order to use them in a page.

If i put an image with the full url (http:// ...) the image get displayed in the editor but if i try the relative url /data/uploads/myimage.png) i get an "x" in the editor. Is it wrong the relative url i'm using ?

Thanks
Hi,

Isn't my question clear ?

I would like to insert images without using the full url ("http:// ... "). What is the relative url i have to use ?

Thanks



gioacchinomauri Wrote:Full post:
-----------
Hi there,
I really appreciate GetSimple cms but i don't understand why i have to put the full url of my images in order to use them in a page.

If i put an image with the full url (http:// ...) the image get displayed in the editor but if i try the relative url /data/uploads/myimage.png) i get an "x" in the editor. Is it wrong the relative url i'm using ?

Thanks
/data/uploads/myimage.png should be the right relative URL. Unless you have GetSimple installed in a subdirectory.

If GetSimple is installed on http://example.ms/getsimple/ instead of directly on http://example.ms/ you’re going to have to use /getsimple/data/uploads/myimage.png to point to your image.

I hope this helps you out, I don’t really have a better answer ready for you I’m afraid.
Ive hade the same in edit mode you see the image if you use ../image or ../data... but dont in the real mode from outside but if you use ./ in edit mode uou dont see the image in edit mode but in the real outside
Why would you use ./ instead of just /? Using just a / refers to the root of the domain, so if GetSimple is installed there /data/uploads/ will always refer to the uploads folder and is a fool-proof way of linking to anything.

I haven't tested it in CKEditor, but if you link it there starting with just the forward slash it should even display the image there.