Re: Editting more than one htm page using edithtml.asp

  •  01-02-2007, 4:48 PM

    Re: Editting more than one htm page using edithtml.asp

    This is cool uk192, we offer the same services and same goals with our CMS/file manager suite !

    The only diffrence is that my system does not edit real HTML FILES, the web pages are 100% DATA DRIVEN, but only by adding the editor.SaveFile function will do what you ask for...
     
    To view my platform or test it:
    Customer website: http://www.webloft.ca/deluxetel 
    CMS : http://www.webloft.ca To log in: ceuser@webloft.ca password: ceuser

    Note: please do not erase or overwrite content. The CMS/control panel is in FRENCH, sorry!!

    When logged in, on the left menu click on PAGES WEB, after click on the HOME page to edit it. Ho ya... from there, you can also see my CE ASP vs CSS PROBLEM via the thread http://cutesoft.net/forums/thread/25214.aspx
    Ok uk192... now it is your turn... To give you the possibilitie to edit your HTML PAGES via your platform with CE, do something like this...

    You will have to create a new page to replace your /webeditor/file_edit.asp and your code will look like this;
     
     
    <!-- #include file = "editeur5_2/include_CuteEditor.asp" -->
    <%
       Dim editor
       Set editor = New CuteEditor
       editor.ID = "HTML_CONTENT"
       editor.Text = HTML_CONTENT
       editor.FilesPath = "editeur5_2"
       editor.FullPageOnLoad = true 

       editor.LoadHTML("/" & myFolderName & "/" & request("file")) ' load existing html file from path
       editor.SaveFile("/" & myFolderName & "/" & request("file")) ' save it or create a new file named...
     
       editor.Draw()
    %>
     
    With the editor.SaveFile, it will overwrite or create (if does not exist) the file in the folder, this built-in CE function can gives  fowerfull options in your web apps!! Note that the folder must have a "read/write" permission.

    Et voilà uk192!

    Note: I really loved your Form Manager module, hope you will leave the demo username and password active, I love analyse project like that, it is a good way to give us new horizons and tips and I hope webloft will also help you!

    Enjoy,
    //JF//  

     
View Complete Thread