Documentation Center

How to load another document without restarting

Use the API to load a new HTML page from your cms without restarting the editor each time.

When you implement SDL LiveContent Create SDL Xopus into your CMS you may want to open one document after the other in SDL LiveContent Create without having to restart SDL LiveContent Create SDL Xopus every time you open a new document.

You can run SDL LiveContent Create in a frame of your CMS, and use JavaScript to tell SDL LiveContent Create (represented by the Editor object) to load other documents to edit. This will increase document load performance, and when users don't have to wait for SDL LiveContent Create loading every time they will have a far more pleasant editing experience.

In order to achieve this you can use the Editor.setURL function. This function will load a new HTML page into the content area of SDL LiveContent Create and unload the previous page. Another method is using XopusCanvas.loadDocument - this method will even reuse the existing HTML page, and will only load another XML document.