Image Gallery File Path Issues...

Last post 09-18-2008, 11:06 AM by Adam. 3 replies.
Sort Posts: Previous Next
  •  09-18-2008, 6:39 AM 44055

    Image Gallery File Path Issues...

    I'm currently in the process of migrating some of our sites from the classic ASP version of CuteEditor to the .Net version and I'm running up against a problem relating to the image gallery file path. I can see how to change the file path globally (ie via the security config files), but as I have three or four different editors all using different upload directories, that's not really appropriate.
     
    From the information in the developers guide, it does imply that you can set the image gallery file path on an instance by instance basis, but I'm having no luck in working out where the snippets offered in the guide need to be placed to get them to work.
     
    Any help would be most appreciated.
  •  09-18-2008, 6:44 AM 44056 in reply to 44055

    Re: Image Gallery File Path Issues...

    2: Programmatically specify the Image gallery path:


    C# Example:

    //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";
    or
    //use the app-based path 

    Editor1.SetSecurityImageGalleryPath("~/uploads");
    //use the absolute path 
    Editor1.SetSecurityImageGalleryPath("/uploads");
    //use the physical path 
    Editor1.SetSecurityImageGalleryPath("c:\inetpub\wwwroot\uploads");


    VB Example:

    //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" 
    or
    //use the app-based path 

    Editor1.SetSecurityImageGalleryPath("~/uploads")
    //use the absolute path 
    Editor1.SetSecurityImageGalleryPath("/uploads")
    //use the physical path 
    Editor1.SetSecurityImageGalleryPath("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

  •  09-18-2008, 7:52 AM 44057 in reply to 44056

    Re: Image Gallery File Path Issues...

    Ye-es. I've seen that page and that's the problem: From those snippets, I cannot see where in my page I put the line "Editor1.Setting("security:ImageGalleryPath")= "c:\inetpub\wwwroot\uploads""
     
    The security policy information is more helpful, but that solution would imply having to write a new security policy for every editor instance, whereas in the classic ASP version I can just set the file path in the page.
  •  09-18-2008, 11:06 AM 44067 in reply to 44057

    Re: Image Gallery File Path Issues...

    >>Ye-es. I've seen that page and that's the problem: From those snippets, I cannot see where in my page I put the line "Editor1.Setting("security:ImageGalleryPath")= "c:\inetpub\wwwroot\uploads""
     
    You can put the above code where you want to change the image gallery path, for example, page_load, page init event.
     
    >>The security policy information is more helpful, but that solution would imply having to write a new security policy for every editor instance, whereas in the classic ASP version I can just set the file path in the page.
     
    It works same as ASP version. Actually it's better.

    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