Not showing in normal / preview mode

Last post 01-26-2006, 6:37 AM by ias0nas. 5 replies.
Sort Posts: Previous Next
  •  01-25-2006, 3:51 AM 15079

    Not showing in normal / preview mode

    Hello,
     
    I cannot see images and the results of apllying styles in the normal and preview window
     
    I have set the images directory and stylesheet path, and everything looks fine when viewing the page in a browser, it just wont show those in the cute editor windows
    The images are shown with the little red X, as if the image is not found. I can still resize and work with the image thought
     
    Any ideas?
     
    Thank you
  •  01-25-2006, 1:56 PM 15116 in reply to 15079

    Re: Not showing in normal / preview mode

  •  01-25-2006, 4:09 PM 15132 in reply to 15116

    Re: Not showing in normal / preview mode

    In the page_load I have this code:
     
    editor.Setting("security:ImageGalleryPath") = Server.MapPath("~/../articlePages/pictures")
    editor.Setting("security:MediaGalleryPath") = Server.MapPath("~/../articlePages/media")
    editor.Setting("security:FlashGalleryPath") = Server.MapPath("~/../articlePages/flash")
    editor.Setting("security:TemplateGalleryPath") = Server.MapPath("~/../articlePages/templates")
     
    Thank you
  •  01-25-2006, 4:16 PM 15135 in reply to 15132

    Re: Not showing in normal / preview mode

    "("~/../articlePages/pictures" is not a valid path which caused the problem.

    Please use the following method to configue the ImageGalleryPath.


    //use the app-based path

    Editor1.Setting("security:ImageGalleryPath")= "~/uploads"
    //use the absolute path 
    Editor1.Setting("security:ImageGalleryPath")= "/uploads"
    //use the physical path 
    Editor1.Setting("security:ImageGalleryPath")= "c:\inetpub\wwwroot\uploads" 


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  01-26-2006, 3:27 AM 15150 in reply to 15135

    Re: Not showing in normal / preview mode

    Well, I don't want ~\uploads or \uploads as the image folder, I need to have \..\uploads as the image directory
    Let me explain this better, I wasnt clear enought
     
    I have two applications, one is called the manager and the other the site
     
    From the manager application I create pages that are saved in the site apllication
     
    The two application folders are on the same level

    i.e: C:\InetPub\Site
            C:\InetPub\Manager
     
    I would like inside the manager application (where CE is used) to declare a path to site directory as the image folder (that is why I used \..\)
     
    Is that possible?
    Using absolute path it won't let me do it (it can't go up the root directory), but using application path it will work fine (saves the files where I want it) but wont show them in CE windows
     
    Thank you
  •  01-26-2006, 6:37 AM 15154 in reply to 15150

    Re: Not showing in normal / preview mode

    I found was caused the error, it was a line of code:
    editor.BaseHref = "~/inetsite/articlePages/"
     
    Thank you
View as RSS news feed in XML