FCKeditor and images
Last Post 07/09/2007 9:45 AM by Lee Sykes. 3 Replies.
Author Messages
David
Nuke Master
Nuke Master
Posts:152


--
07/06/2007 6:36 PM
    While Kevin and your method of "fixing" the image urls inside the Text / HTML module is very useful, isn't there some way to force relative URLs in a way that why should work on both the production server and localhost/xyz?

    It seems to me that back in 1995 when I was creating large dynamic web sites by hand with CGI and perl generated HTML I could do urls in a way that didn't matter where they were located on the web server. As long as the location of the images remained in the same relative location to the text all was good.


    /DaveS

    David
    Nuke Master
    Nuke Master
    Posts:152


    --
    07/07/2007 10:30 AM

    Taking a further look at my image links most seemed to be fully qualitied http://www.AgingSafely.com/Portals/0/...... rather than /Portals/0/....

    I wonder if earlier versions of the FCKeditor did that.

    You definatly don't want to do Replace_DesktopHtml 'www.AgingSafely.com', ''  to fix this problem, or you will mess up many other links. Replace_DesktopHtml 'www.AgingSafely.com/Portals/0/', '/Portals/0/'  would be a better bet so that email addresses and links to your site don't get trashed in the process.

    /DaveS

    David
    Nuke Master
    Nuke Master
    Posts:152


    --
    07/07/2007 11:05 AM
    In examining my site further most of my images were actual buttons in my ListX application. ListX (developed by Kevin S.) has tokens that are fixed-up such as Print Page where the PORTAL PATH is adjusted correctly at runtime.

    This means that I don't have to tweak these as I clone my production system on my local host.

    Too bad that the Text / HTML module and FCkedior don't have these ;=}

    /DaveS
    Lee Sykes
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945


    --
    07/09/2007 9:45 AM
    Yes, one of the methods I used before discovering this SQL find and replace was to upload the images to the live site and in the locahost installation link directly to them with the full url.

    and then live to localhost:
    If you have pics on the live site that use relative urls and you download it to the localhost installation, I used to just place the pics folder in the IIS www folder structure to match the live site.

    not ideal, but it also gets around the problem.
    Lee Sykes
    Site Administrator
    Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

    Twitter: www.twitter.com/DNNCreative

    Lee Sykes's Facebook Profile


    ---