Base URLs - FCKeditor
Hi guys, hope everyone is well.
I've just moved my site onto the internet which has caused me a few problems concerning the urls of any documents/images added into the CMS whilst it was under development.
I added a resources facility into my site so that editors could add related "downloads" for an article. As the fileupload control appends the full base url to the filepath these resources along with the url's for category images failed to show as the base url had obviously changed
This was an easy fix as the data is presented using <asp:image> or <asp:hyperlink> controls meaning I could change the stored file name to "~/FileName.xxx"
This way it will always look into the root of the site.
However when adding images to an article the images are added using html <img> tags so "~/" does not work. If I add "/" to the start of the path then the images will show for visitors viewing the article but will not when editing the article (because the EditArticle page is in a directory higher).
Just wondered if anyone else had found this to be an issue and whether they had come up with a solution.