SetSecurityFilesGalleryPath

Last post 04-28-2009, 1:36 PM by Adam. 3 replies.
Sort Posts: Previous Next
  •  04-28-2009, 7:09 AM 51601

    SetSecurityFilesGalleryPath

    Is "SetSecurityFilesGalleryPath" the same for "New document" as it is for "Insert Hyperlink" Browse..?
    Can I choose different?
    I want to set the root folder in my webbapplication when i browse for the url....
    But i want still have my upload folder for "New document"
  •  04-28-2009, 7:23 AM 51603 in reply to 51601

    Re: SetSecurityFilesGalleryPath

    Hi kjell.ek,

    1. Open file Default.config (CuteSoft_Client\CuteEditor\Configuration\Security\Default.config)

    2. Find section below:

     <security name="FilesGalleryPath">~/uploads</security>
    3. Change the path you want('~/uploads' is the path)
     
    Regards,
     
    Ken

     

  •  04-28-2009, 9:18 AM 51609 in reply to 51603

    Re: SetSecurityFilesGalleryPath

    You understand me wrong.
    When I select the menu New Document will appear in the folders from Editor1.SetSecurityFilesGalleryPath ("~/upload/documents/") as I set in the code behind.

    When I select Insert Hyperlink and select "Browse", I get the same folder structure most likely happened from Editor1.SetSecurityFilesGalleryPath ( "~/upload/documents/")?

    I want to have different folders for Insert Hyperlink when i Browse(~/).
    And when I select New Document , I want to specify the folder "~/upload/documents/"
  •  04-28-2009, 1:36 PM 51623 in reply to 51609

    Re: SetSecurityFilesGalleryPath

    kjell.ek,
     
    The document gallery dialog shares the the same document path with the file browse dialog. You can set FilesGalleryPath to ~/.
     
    If you want to set a different path for file browse dialog, please open CuteSoft_Client\CuteEditor\Dialogs\SelectFile.aspx and modify the following code:
     
    fs.VirtualRoot=CuteEditor.EditorUtility.ProcessWebPath(Context,null,secset.FilesGalleryPath).TrimEnd('/')+"/";
     
    Hope it helps.

    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