3. The Catalog Directory
Interchange pages are contained in the catalog directory. Each individual catalog has its own base directory. The catalog directory has the following structure by default:
catalog.cfg
-
File containing configuration directives for a particular catalog. Configuration settings established in the catalog.cfg directory will not effect any other catalogs running under the version of Interchange you are using. Subcatalogs can have differing information in a file named for that subcatalog.
config
-
Directory that will be read when directives are set with the filename notation. For example, the file config/static.pages will be read when the following directive is encountered in the catalog.cfg file.
StaticPage <static.pages
-
This directory also contains template information used with the makecat program.
error.log
-
File which contains catalog-specific errors. It is also where any syntax errors in embedded Perl code are shown.
etc
-
Directory normally used for tracking files, order profiles, and other configuration and log information.
pages
-
Directory that contains the pages of the catalog. This can be considered to be the "document root" of the catalog. Pages contained therein are called with the path information after the script name. For example:
/cgi-bin/simple/products/gold will call the page in the file pages/products/gold.html.
products
-
Directory that contains database source files, including the special Interchange databases shipping.asc, pricing.asc (and other shipping database files).
session
-
Directory that contains session files.
tmp
-
The temporary or scratch directory used for various storage reasons, like retired ID numbers, search paging files, sort tests, import temporary files, etc. This is the default set by ScratchDir. It can be redefined to be located on another partition.