Re: Templates in a database

  •  07-04-2006, 7:28 AM

    Re: Templates in a database

    Hi
     
    Until then, is it possible to mix it, so images and media files still are stored in the database, and templates are stored in the file system? In Page_load I put the following 3 lines of code, in order to load and store images in the database.
    txtContent.Setting["CuteEditorFileStorageType"]=typeof(SqlFileStorage).AssemblyQualifiedName;
    txtContent.Setting["DownFile"]=ResolveUrl("../Webforms/DownFile.Aspx");
    txtContent.SetSecurityGalleryPath("/");

    If I set the following line of code in order to get templates from the file system, it won't work, because of the 3 lines above. If I uncomment the 3 lines above, then loading of templates works fine.
    As a solution: Is it possible to trigger the key/button pressed? 

    txtContent.SetSecurityTemplateGalleryPath("~/templates");
     
     
    Thanks
    Torben
View Complete Thread