Documentation Center

Adding a DIMAP value to AppData

To use any document in Contenta that uses a DTD not previously stored in AppData, you (the sysadmin) must first create a map file in conjunction with the DTD and add the map file information to the DIMAP value.

To add the mapping information to the DIMAP value, set appdata to YES in the digui.cfg file when you import the data, or execute the ImportDIMap.pl command. The ImportDIMap.pl file is in the Contenta_home directory under encaps > di.

At a command prompt, enter the command using the following syntax:

ImportDIMap.pl -map fullpath/mapfile -doctype document_type -s socket -n node -d database -u user -pw password

Where:Is:
-map fullpath/mapfile

The full path to the mapfile and the name of the map file. Use double quotes around pathname to avoid errors. The fullpath is not required if map file is in the default, di > MapFile directory.

-doctype document_type
The value in the Document Type metadata for the object.

This value must be unique for each DTD used with the editor client.

-s socketThe number of the portal on which Contenta communicates with the database (PcmPortal number)
-n nodeThe name of the PcmPortal node (Contenta Server)
-d database The name of the Contenta database
-u userA valid Contenta user name—for example: sysadmin
-pw password The password for the <user>

Example:

ImportDIMap.pl -map C:\Contenta\encaps\di\mapfiles\play.map -doctype play -s 6050 -n keeter -d cetrain -u sysadmin -pw manager