Importing a Hierarchy and Data Files
The first step to import a hierarchy is to create the hierarchy on your file system.
That is, create directories or folders in the hierarchical order which you want imported into SDL Contenta, then place the data files in the appropriate directory/folder.
Include filename extensions for the data files. In the File Import interface, you map the filename extensions to Contenta objects.
Example:
The files with information for the introductory section of the document have a .txt filename extension. The information to be included in the chapters will have a .doc extension. If you map the .txt extension to the Contenta module object, and the .doc extension to a CompoundAscii object, when imported:
- a module object is created for files that have a .txt extension and the data is imported into the module.
- a FixedFormat object is created for files that have a .doc extension and the data is imported into the FixedFormat.
When creating the directory structure, you can (optionally) map a Contenta container type object to a directory by appending the object name to the directory name as an extension.
The top level directory is named Travel.group. Since the extension is .group, File Import creates a Contenta Group object when importing this directory.
When File Import imports the directories with the .document extension, a Contenta Document object is created.