Kentico CMS 7.0 Context Help

Importing steps

Importing steps

Previous topic Next topic Mail us feedback on this topic!  

Importing steps

Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic!  

Step 1

 

In the first step of the wizard, you need to choose the import package that you want to import. Packages that are already stored in the in <web project>\CMSSiteUtils\Import folder are listed in the Import packages listbox.

 

You can upload additional packages to the folder (and hence add them to the list) using the Upload package (UploadPackage) link. You can also add the package to the folder manually and click the Refresh (RebuildIndex) link for it to get displayed in the list. Packages can be deleted (both from the list and from the file system) using the Delete package (Delete) button.

 

With a package selected, you can choose from the following options:

 

Preselect all items

If selected, all items in the package will be preselected in the next step.

Preselect only new items

If selected, only items that are not already in the database will be preselected.

 

Make the desired selection and proceed to the next step by clicking the Next button.

 

The following steps differ for site, set of objects and single object import. When importing a site-related single object, Step 2 will let you choose the target site form the existing sites. When importing a set of objects, Step 2 will be skipped and Step 3 will be displayed directly.

 

Step 2

 

Import a new site

When chosen, a new site will be created based on the contents of the package. You have to enter the site's display name, code name and the domain that it will use.

Import objects into an existing site

When chosen, contents of the package will be imported into the site chosen by the check-box below.

 

Step 3

 

In Step 3, you can select which of the objects from the exported package are to be imported and which are not. You can make this selection by choosing one of the categories displayed in the tree view on the left side of the screen. Only categories of objects found in the import package will be displayed.

 

By selecting a category, a set of check boxes appears in the right part of the screen, letting you select which objects are to be imported. Objects that already exist in the database are marked with an asterisk (*). If you leave such object's check-box checked, this existing object will be overwritten with the newly imported one.

 

Step 4

 

In Step 4, an import log will be displayed, showing the progress of importing. You can abort importing by clicking the Cancel button any time. When the import successfully finishes, click the Finish button to return to Site manager -> Sites.

 

 

 

Application restart

 

At the end of the import process, you may get the following error message:

 

"Application has been restarted and the logging of the import process has been terminated. Please see context help in this section for more details and how to solve this issue."

 

If so, you will have to finish the import process manually:

 

1. Open the import package and extract all contents of the <package>\Data\Files folder.

 

2. Remove the .export extension from names of all files in all extracted sub-folders.

 

3. Rename all folders named ##SITENAME## to the code name of the target website and copy them to the root of the web project.

 

4. Copy all contents of the cms_attachments folder (if it is present among the extracted folders) to the location in the target project where document attachments are stored (as configured in Site Manager -> Settings -> System -> Files). Please note that this is applicable only when the system is configured to store document attachments in the file system (not in the DB).

 

5. Copy all contents of each folder named as an object type (e.g. cms_avatar, cms_documenttype, forums_forum, etc.) to the root of the web project.