1 CE Site to manage multiple sites

Last post 06-12-2009, 9:35 AM by gottwald. 2 replies.
Sort Posts: Previous Next
  •  06-09-2009, 2:21 PM 52913

    1 CE Site to manage multiple sites

    I am new to CE.  I recently purchased an IP license for the Classic Product and I am trying to accomplish the following: 
    • Set up 1 website/application that houses all of the CE files and configurations (Making many copies of the CE files and configurations will casue support issues.)
    • Manage/Edit content/pages for multiple websites from this 1 site (The sites are all ASP)
    • At logon the user will be presented with a list of files to edit that they have access to (user data all managed in SQL Server)
    • I am using the LoadHTML function to load the files for editing
    Here are the main items I need to accomplish this:
    • Load Files for editing from various locations/sites on my server
    • Be able to Load the proper CSS files in
    • To have CE read in the ASP Server side includes (most pages include a header that references the css and other includes
    • Have CE properly reference the urls and the images
     
    Here are the main problems I have run into and need help with:
    1. CE seems to require the files be below the root of the website with the CE files
    I was able to comment out thre mappath reference in the loadHTML function but the images would not render properly)
     
    2. Render the CSS properly within CSS (The CSS is referenced ina server side ASP include)
    I cannot get the CSS to render properly in the page at all
     
    I have scoured the forum and come across some bits and pieces but wanted to try and ask the question for my purpose in it's entirety.
     
    I can provide more detail and or directory structure and include structure if necc.
     
    Any help is greatly appreciated.
     
    Thank You.
     
    -Dave
     
     
     
     
  •  06-12-2009, 9:33 AM 53073 in reply to 52913

    Re: 1 CE Site to manage multiple sites

    We created a directory scripts/CuteEditor_Files on the server.
    (the subdirectory is not really needed. We used this structure because we have other software like fusionchart and jupload in the same directory)
     
    The directory contains all the files and subdirectories and the license.
     
    In IIS we created a virtual directory for all the websites that use cute editor called cute_editor, which points to the above directory scripts/CuteEditor_Files
     
    Inside the asp files we use this code
     
    <%
    '------------Beginn Texteditorfeld----------------
    Dim editor
     Set editor = New CuteEditor
     editor.ID = "detail"
     editor.Text = objRS.Fields("detail")
     editor.FilesPath = "/cute_editor"
     editor.EditorWysiwygModeCss = "../styles/main_style.asp"
     editor.ConfigurationPath = "/cute_editor/Configuration/kreartiv.config"
     'editor.ConfigurationPath = "/cute_editor/Configuration/einfach.config"
     'editor.ImageGalleryPath = "/Uploads"
     'editor.MaxImageSize = 50
     'editor.AutoConfigure = "Simple"
     'editor.Template= "Bold,Italic,Underline"
     editor.CustomCulture = "de-de"
     editor.EditorOnPaste = "PasteWord"
     editor.AllowPasteHtml = False
     editor.BreakElement = "p"
     editor.FullPageOnload = true
     editor.Width = 620
     editor.Height = 250
     editor.Draw()
    '------------Ende Texteditorfeld----------------
     
    On our local server that we use for testing we have the same directory structure as on the server and created the virtual directory inn IIS once for all webs.
     
     

    Volker Gottwald
  •  06-12-2009, 9:35 AM 53074 in reply to 53073

    Re: 1 CE Site to manage multiple sites

    I forgot one important thing:
     
    The asp file that calls cute_editor needs this in the heading section
     
     <!-- #include virtual = "/cute_editor/include_CuteEditor.asp" -->
     
    or the equivalent to your file structure where the virtual cute_editor diretory is located and how it is named.
     
    Sorry for forgetting.

    Volker Gottwald
View as RSS news feed in XML