|> Home > Documentation > Latest documentation > Global config directives > TemplateDir|
Specify common template/fallback page directories.
Supply one or more directory names, separated by whitespace. The default is blank.
This directive is available for use globally (in the "interchange.cfg" configuration file), and locally (in the "catalog.cfg" configuration file).
The global configuration affects all websites running under the Interchange instance. Each individual website's local configuration will not affect or influence other websites in any way.
This directive can be used to specify a directory that holds some default/shared pages, so that similar websites need not create their own copies.
The website's PageDir directory will be searched first. If the requested page is not found then it will be looked for in the local TemplateDir list, and then in the global TemplateDir list. The file used will be the first one found in the list.