Problem dragging images onto HTML Editor
Permalink
Because of the way concrete does urls, I'm having a problem dragging images onto the html editor and getting them to display.
I copy images to the server directly, into the folderhttp://cakesbygoldengourmet.com/uploads/images...
Then, I view the file I want to use by going to that url and choosing an image, and then drag that image onto the html editor in concrete.
This causes it to create a relative link to the file, like this
<img src="uploads/images/DSC02089.JPG" alt="http://www.cakesbygoldengourmet.com/uploads/images/DSC02089.JPG" />
And it looks fine when in the dashboard, but once I exit and view the website normally, the image doesn't appear, because the page I'm on is being accessed with this url:
http://www.cakesbygoldengourmet.com/index.php/test-page/...
therefore the browser looks for the image at this url:
http://www.cakesbygoldengourmet.com/index.php/test-page/uploads/ima...
and of course it's not found there.
I can think of 2 fixes:
1. allow concrete to be configured to not use the extra slashes, and instead use something like this:
http://www.cakesbygoldengourmet.com/index.php?cID=62...
(BTW, if you access the page this way, you see the image)
2. when dragging images onto the html editor, somehow create a full url for the image, instead of doing it relatively
Hopefully this makes sense... any help would be appreciated!
I copy images to the server directly, into the folderhttp://cakesbygoldengourmet.com/uploads/images...
Then, I view the file I want to use by going to that url and choosing an image, and then drag that image onto the html editor in concrete.
This causes it to create a relative link to the file, like this
<img src="uploads/images/DSC02089.JPG" alt="http://www.cakesbygoldengourmet.com/uploads/images/DSC02089.JPG" />
And it looks fine when in the dashboard, but once I exit and view the website normally, the image doesn't appear, because the page I'm on is being accessed with this url:
http://www.cakesbygoldengourmet.com/index.php/test-page/...
therefore the browser looks for the image at this url:
http://www.cakesbygoldengourmet.com/index.php/test-page/uploads/ima...
and of course it's not found there.
I can think of 2 fixes:
1. allow concrete to be configured to not use the extra slashes, and instead use something like this:
http://www.cakesbygoldengourmet.com/index.php?cID=62...
(BTW, if you access the page this way, you see the image)
2. when dragging images onto the html editor, somehow create a full url for the image, instead of doing it relatively
Hopefully this makes sense... any help would be appreciated!
I understand that's a solution, I'm hoping someone would be willing to investigate either solution I outlined in my post... since an html editor is provided, it should work if someone drags an image onto it. Right now, when I drag the image on it, it displays fine until I log out and view the page outside the admin area.
Maybe the BASE html tag would do the trick...
http://www.w3schools.com/TAGS/tag_base.asp...
??
Update: I just tried adding the base tag to my template and that did the trick... but I'll leave it out for a day or 2 so that the links will still show the original issue.
Maybe the BASE html tag would do the trick...
http://www.w3schools.com/TAGS/tag_base.asp...
??
Update: I just tried adding the base tag to my template and that did the trick... but I'll leave it out for a day or 2 so that the links will still show the original issue.
Mike