Setting Gallery Path - working on 5.3, not on 6.2

Last post 01-21-2009, 12:54 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  01-21-2009, 10:41 AM 47926

    Setting Gallery Path - working on 5.3, not on 6.2

    I've used CuteEdit 5.3 on a previous project for content management where a client in the admin subdirectory could upload content that would go to the main website.  This worked fine:

    // Set up editor
    txtEditor.BreakElement = BreakElement.P;
    txtEditor.SetSecurityImageGalleryPath(
    "~/../gfx/uploads");
     
    In CuteEdit 6.2, I'm trying to do the same thing.  I've tried multiple ways of doing it:
     
    string folder = Server.MapPath(".") + \\..\\gfx\\images;
    or
    string folder = "~/../gfx/images";
     
    ...then:
     
    txtPageText.AutoConfigure = AutoConfigure.Full_noform;
    txtPageText.Setting[
    "security:ImageGalleryPath"] = folder;
    txtPageText.Setting[
    "security:MediaGalleryPath"] = folder;
    txtPageText.Setting[
    "security:FlashGalleryPath"] = folder;
    txtPageText.Setting[
    "security:FilesGalleryPath"] = folder;
     
    ...or...

    txtPageText.SetSecurityImageGalleryPath(folder);
    txtPageText.SetSecurityMediaGalleryPath(folder);
    txtPageText.SetSecurityFlashGalleryPath(folder);
    txtPageText.SetSecurityFilesGalleryPath(folder);

    All runs fine, but when I open the gallery (or any dialog box) I get an error message saying "cannot find part of the path "c:\web\<appname>\admin\uploads

    I've also tried commenting out the Configuration\security\*.config entries for ImageGalleryPath, etc, just in case, but my code is consistently being ignored/overridden.

    I'm sure it's something simple, but what am I doing wrong here?
     
    Thanks in advance,
     
    Duncan
  •  01-21-2009, 12:54 PM 47930 in reply to 47926

    Re: Setting Gallery Path - working on 5.3, not on 6.2

    Duncan,

    We didn't change this part of code in version 6.x. Please check this example:
     

    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

View as RSS news feed in XML