You did not mention which version of Lenya is installed. Assuming 2.x, someone else must provide specifics about importing. My experience is with Lenya 1.2 and 1.3.
"most of the files are xsp, xml, or xsl." All versions of Lenya natively handle XSP, XML, and XSL files because all versions of Lenya are based on Cocoon 2.1. (Cocoon 2.2 has difficulty with XSP.) How best to import depends on your XML files: 1. The files might remain in their current location or be imported into Lenya's data structure. 2. A new resource type could read the files in their current format, or you could transform the XML files into the Lenya's standard XHTML format/resource type. 3. Lenya depends on a "sitetree" to translate URL document paths. Lenya 1.2 can build a sitetree document from a hierarchical directory structure. Lenya 1.3 uses a flat data structure and dynamically generates the sitetree from "indexes" describing the relationships. I believe Lenya 2.0 uses a static sitetree document to translate URL paths to UUIDs for locating XML documents in a flat datastore. As mentioned, someone else needs to provide details about sitetrees in Lenya 2.0. The first decision is whether you are converting the website to Lenya or just using Lenya for its WYSIWYG editing. You can "link between Lenya and our website," but that likely requires more work to setup than a one-time conversion. Does your Cocoon website provide any benefits that cannot be provided by Lenya? (The answer must be "no" because Lenya runs on Cocoon and has all the abilities of Cocoon.) HTH, solprovder On 6/13/08, andy.way <[EMAIL PROTECTED]> wrote: > Thanks a lot for your answer, I really appreciate. I still have another > questions. Our website is based on cocoon, so most of the files are xsp, > xml, or xsl. > > If I want to use lenya as a new CMS, how can I import the old files of our > website? Do I need to rebuild the website again with lenya, or I can make a > link between lenya and our website? I just want to use lenya's editor to > edit the xml files of our website in visual way ( that means I'd like to > generate an interface in lenya exactly looks like what it should be in our > current website). Where can I put the xml files and xsl files, so that > lenya can implement the xslt, and then I can have the interface to edit the > xml files? > > Best regards, > Andy.Way --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
