Importing a File

This dialog shows up if you select the Import file command from the File menu. It allows you to import a file from the file system into CMS Fiona. Please note that files cannot be imported as documents and folders if they contain characters not permitted in XML documents.

There are two ways of importing a file:

  • A new file is created in the CMS. the contents of the file to import is stored in the draft version of the new file. If a folder has been selected in the hierarchy, the file will be created in this folder and not on the same hierarchy level as the folder itself. If no folder is selected, the file is created on the same level as the selected file.
  • The main contents of the draft version of the file currently selected in hierarchy is replaced by the contents of the file to be imported.

Select the file to be uploaded (using the Browse button, if necessary) and click Import. If only one file format is available for the type of the file to be imported, the file is imported immediately. Otherwise, a dialog is displayed, allowing you to choose the file format to be used.

In order to make an office file (a Word document, for example) available as HTML content, import it as a resource first. Then convert it to HTML using the corresponding command from the File menu.

The formats that can be chosen when importing a file depend on:

  • the name extension of the file to import
  • the formats the folder in which a new file is to be created permits.

This is an example for creating a new file while importing:

  • The name extension of the file to import is compatible with the formats A, B, and C.
  • The file is to be imported into the folder X.
  • The format of the folder X determines, that X may only contain files with the formats A, C, and E.
  • The formats remaining applicable are A and C.

Special Import Features with HTML Files

When importing HTML files, the content of the body element becomes the main content of the CMS file. If the file to be imported contains a head element, the title of the CMS file will be extracted from it (title element). If the head element contains meta elements, the CMS attempts to assign their values to the corresponding fields of the CMS file provided that the format of the CMS file includes fields with the same names. No error message is output if this is not possible. Example:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
<title>The title of the file</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="abstract" content="The abstract">
<meta name="short_title" content="The short title">
This is the main content