Page 1 of 1

FCKEditor and absolute image paths (again)

Posted: Thu May 18, 2006 11:14 pm
by tamlyn
I had a similar problem before and it got resolved thanks to the valiant efforts of megabob3. Now I'm working on a new site with CMS 0.12 and I'm getting the problem again but the FCKEditorX module has changed and the previously described solution no longer seems to apply.

Actually it's a bit different from last time. If I specify the image path as absolute then it is correctly saved and the image displays fine. However when I use the gui to select or upload an image fck fills in a relative path by default which doesn't work due to my url scheme. I need to manually prefix the path with a slash to make it absolute then it works.

How can I tell fck to only use absolute paths?

Re: FCKEditor and absolute image paths (again)

Posted: Fri May 19, 2006 1:43 am
by Ted
Try putting a base tag in the head section of your template ({metadata} does this in the 0.13 series). 



Then all of the relative paths should resolve from the proper place.

Re: FCKEditor and absolute image paths (again)

Posted: Fri May 19, 2006 1:49 am
by tamlyn
I'd rather not use . I can't give a good reason why but I've just always had a feeling it isn't right!

Re: FCKEditor and absolute image paths (again)

Posted: Fri May 19, 2006 3:18 am
by Dr.CSS
i set this site up in 3 hours last night from start to finish... www.fullerlifewater.com  i know ...it looks familiar..
anyways got it all set up and went to put img. on price page and they wont show ?? what!.. did it just like always hhmmm...
ok check the path, looks ok ?? ok  clik the img. to get big img. ... comes up 404 file not found  ??what!!?? check path, looks right  hhmmm... somemore... ok look at the path with FCKeditor in edit page mode.. uploads/images/img.jpg  ok looks good... think for kix i'll put this in /uploads/images/img.jpg  WOW it works hmm ..well i guess when the client uses it i'll just tell them to put / this in front of every img. they insert with FCKeditor.. oh yea BTW now the menu no longer works in IE  oh s**t now what.. went thru every thing i could think of, i just did this 2 weeks ago twice and every thing was fine dam? 2 1/2 hrs later i gave up stripped the whole site bare started over.. ok looks good now.. cept the menu don't work in IE again so i went thru every thing again... turns out my only problem was that i needed to change the...





which i've used a lot on my templates because i use the flyout style CSS menu a lot and this was a template i imported from my main site thinking the first adaption of they're previous template might not have been set right... well wrong again... just needed to change it to this, wish i would have found this out sooner, i had tried every pretty url trick in the forum i could find with no luck, besides trying every menu trick i could find and the {metadata} thingy... and this was all it was.... ready...





one / and the whole thing went flying like a cool breeze... so if you set up the latest CMSMS and thing go wonky check your paths for this and try it before you pull all your hair out... i've a lot less than in < that picture now  :D

  mark 

but i get urls like this now... http://fullerlifewater.com/index.php/pr ... upplements