relative image paths in WYSIWYG Editors

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
User avatar
swisscheese
Posts: 138
Joined: Mon 19. Feb 2007, 16:37
Location: Solothurn, Schweiz

relative image paths in WYSIWYG Editors

Post by swisscheese »

Hi all

If I insert a image in Spaw or FCK, the path to the image will be a absolute path something like "http://myserver.com/content/images/...". This brings up troubles when migrating the site.

Is there a way to convince Spaw or FCK to automatically work with relative paths ("content/images/...") so that the images are shown correctly in the frontend and backend?

Thanks for help
swisscheese
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

They are hard-coded to use the variables in "conf.inc.php" for:

Code: Select all

// site values
AND / OR

Code: Select all

// paths
SO
If you migrate to another domain or host and correctly setup that file (necessary ANYWAY) then there should be no problems. They are still "relative" to those values that you enter in "conf.inc.php".
User avatar
swisscheese
Posts: 138
Joined: Mon 19. Feb 2007, 16:37
Location: Solothurn, Schweiz

Post by swisscheese »

aaah! :D
Thanx
Post Reply