The master and local configuration files are entirely optional.
The Index Builder utility also supports a special CGI mode. In this mode the master configuration file and local configuration file are not used. Instead, a CGI configuration file is used.
Each configuration file contains one or more lines in the following format:
key=valueNo syntax checking is performed on the configuration file. If a line in the configuration file is invalid, it is ignored. Configuration file settings are case-insensitive (upper or lower-case will work).
The following is a list of configuration file option categories:
The following is an alphabetical list of the available configuration file keys:
The following sections lists the valid configuration file settings:
| configFile | index files / slide files |
|---|
This option may be used in a master configuration file to specify the name of the local configuration files. A local configuration file may exist in each subdirectory, and overrides any options specified in the master configuration file. If this is not specified, then the system will not use local configuration files. This option is ignored if it appears in a local configuration file.
| configFile=filename |
| index | index files |
|---|
There are several different types of index files that can be generated. This option determines the type of index file that will be generated.
| index=formatted | default |
|---|
| index=sequence |
|---|
| index=searchable |
|---|
| slides | slide files / index files |
|---|
There are several different types of slide files that can be generated. This option determines the type of slide files that will be generated in the current directory. Since each different slide file type has unique link requirements, this option also affects the way slide links are generated in the index file.
| slides=html | default |
|---|
| slides=simple |
|---|
| slides=frameset |
|---|
| slides=window |
|---|
| backlink | index files |
|---|
Each index may have a backlink, which is a link to the parent index of the current index. The backlink appears at the top of the index. This option determines the type of backlink that will be generated.
| backlink=none |
|---|
| backlink=parent | default |
|---|
| backlink=keywords |
|---|
| backlink=back |
|---|
| backlink=smart |
|---|
| backlink=close |
|---|
| backlink=URL |
| links | index files |
|---|
Each index may contain a mixture of links to both slide files and other HTML files (including index files). This option determines the way in which links to HTML files (non-slide files) are generated. This option does not affect links to slide files (see the "slides" option). This option is only used if "index=formatted".
| links=standard | default |
|---|
| links=open |
|---|
| template | index files |
|---|
Uses an index template file to specify the exact format of the index body. This allows full control over the index layout. If the template option is not used or if the template file does not exist, the system will format the index automatically using the default format.
| template=filename |
| heading | index files |
|---|
Specifies the format of automatically generated index file headings.
| heading=auto | default |
|---|
| heading=text |
|---|
| heading=title |
|---|
| combine | index files |
|---|
| combine=yes |
|---|
| combine=no | default |
|---|
| webLinks | index files |
|---|
When this feature is enabled, URL's that appear in description text are automatically converted to links. This feature is similar to the way many email programs convert URL's in plain text messages to clickable links. This option affects both description text that appears in index entries, and description text that appears in headings. All URL's that begin with "http:/" or "ftp:/" are converted to links. In addition, bare domain names that begin with "www." are also converted to links.
| webLinks=yes |
|---|
| webLinks=no | default |
|---|
| tables | index files |
|---|
Specifies whether HTML tables may be used or not.
| tables=yes | default |
|---|
| tables=no |
|---|
| thumbnails | index files |
|---|
Specifies whether thumbnails will appear in the index or not.
| thumbnails=yes | default |
|---|
| thumbnails=no |
|---|
| keyIconsFile | index files |
|---|
This option specifies the name of the keyword icons file. If this option is not used, the system uses the file "keyicons.txt" in the icons directory, if it exists.
| keyIconsFile=filename |
| toolTips | index files |
|---|
This option specifies the the way in which tooltips should be specified in the generated HTML files. Tooltips are used to display an icon description when the user hovers over a keyword icon. Unfortunately, current browsers display tooltips based on different HTML attributes. Netscape Communicator 4.x displays tooltips using the ALT attribute of an HTML tag, and ignores any TITLE attribute. Netscape 6 displays tooltips using the TITLE attribute of an HTML tag, and ignores any ALT attribute. Internet Explorer 4.x & 5.x display tooltips using the TITLE attribute of an HTML tag, or the ALT attribute if no TITLE attribute exists.
| toolTips=none |
| toolTips=ALT |
| toolTips=TITLE | default |
| toolTips=both |
| pageSize | index files / slide files |
|---|
This option enables multi-page mode for static (non-CGI) indexes. Multi-page mode is used to limit the number of entries that may appear in an index. In multi-page mode, more than one index page can be created, each with up to pageSize index entries. The index files are named "index.htm", "index2.htm", "index3.htm", etc. In multi-page mode, any file with the base name "index#" (where # is one or more digits) automatically becomes a reserved file. This option is ignored in CGI mode.
| pageSize=pageSize |
| pageSize=0 | default |
| name[1] | This affects the first section (links to directories and index files), or the only section if the "combine=yes" option is used. | ||
| name[2] | This affects the second section (links to single HTML files and slides). |
The square brackets around the section number are optional. The section number itself is also optional, and defaults to 1. The options below are only used if "index=formatted".
| layout | index files |
|---|
Determines the layout of a formatted index. The layout determines the overall structure of the index, but not the contents of the individual entries. The "format" option determines the contents of each individual entry.
| layout[section]=simple |
| layout[section]=bullet |
| layout[section]=thumbnail |
| layout[section]=table | default |
| format | index files |
|---|
Determines the layout of the individual entries in a formatted index.
| format[section]=column |
| format[section]=compact |
| format[section]=list | default for format[2] |
| format[section]=auto | default for format[1] |
| format[section]=format |
| columns | index files |
|---|
Specifies the number of columns to display in the index. This option is only available when the "layout=table" is used, and the "format=column", "format=compact", or "format=format" options are used.
| columns[section]=number |
| columnWidth1 | index files |
|---|
Specifies the width, in pixels, of the first field in each index entry. This option is only available when the "layout=table" is used, and the "format=column", "format=compact", or "format=format" options are used.
| columnWidth1[section]=pixels |
| columnWidth2 | index files |
|---|
Specifies the width, in pixels, of all fields after the first in each index entry. This option is only available when the "layout=table" and "format=format" options are used.
| columnWidth2[section]=pixels |
| iPadding | index files |
|---|
Specifies the padding, in pixels, between fields in an index entry. This option is only available when the "layout=table" and "format=format" options are used.
| iPadding[section]=pixels |
| hPadding | index files |
|---|
Specifies the padding, in pixels, between the columns in a multi-column index. This option is only available when the "layout=table" and "format=format" options are used.
| hPadding[section]=pixels |
| vPadding | index files |
|---|
Specifies the padding, in pixels, between the rows in the index. This option is only available when the "layout=table" and "format=format" options are used.
| vPadding[section]=pixels |
| tableAttributes | index files |
|---|
Specifies the attributes to be used in the HTML <TABLE> tag for the index. This option is only available when the "layout=table" and "format=format" options are used. It defaults to "BORDER=0 CELLPADDING=0 CELLSPACING=0".
| tableAttributes[section]=attributes |
| rowAttributes | index files |
|---|
Specifies the attributes to be used in the HTML <TR> tag for all rows in the index table. This option is only available when the "layout=table" and "format=format" options are used.
| rowAttributes[section]=attributes |
| cellAttributes | index files |
|---|
Specifies the attributes to be used in the HTML <TD> tag for all cells in the index table. This option is only available when the "layout=table" and "format=format" options are used.
| cellAttributes[section]=attributes |
| body | index files / slide files |
|---|
Specifies the attributes to be used in the HTML "BODY" tag for the index and all slides. This allows you to set a background color or image, and to specify the text and link colors. This option is just a shortcut that combines the "indexBody" and "slideBody" options.
| body=none |
|---|
| body=attributes |
| indexBody | index files |
|---|
Specifies the attributes to be used in the HTML "BODY" tag for the index. This allows you to set a background color or image, and to specify the text and link colors. See also "slideBody" and "body".
| body=none |
|---|
| body=attributes |
| slideBody | slide files |
|---|
Specifies the attributes to be used in the HTML "BODY" tag for all slides. This allows you to set a background color or image, and to specify the text and link colors. See also "indexBody" and "body".
| body=none |
|---|
| body=attributes |
| JavaScript | index files / slide files |
|---|
Specifies whether JavaScript may be used or not.
| JavaScript=yes | default |
|---|
| JavaScript=no |
|---|
| scale | slide files |
|---|
Causes the slide images to be scaled when displayed. This option is only available if "slides=html" or "slides=simple".
| scale=height |
| scale=width,height |
| movie | index files / slide files |
|---|
This option causes slide files to be generated and used for movie files with the specified extension. Typically, this is used for video files such as ".avi", ".mov", and ".mpg" files. This option may appear multiple times in a configuration file -- once for each movie file type.
| movie=extension |
| reservedFile | index files / slide files |
|---|
This option adds the specified file name to the reserved file name list. Reserved file names are not added to an index file if they exist in the directory being indexed. Slide files are not generated for reserved image file names. This option may appear multiple times in a configuration file -- once for each reserved file name, however you are limited to a maximum of about ten reserved file names. This option is typically used in the master configuration file to reserve a file name in all directories (e.g. an alternate thumbnail image file name), but may also be used in a local configuration file to reserve a file name in the current directory only.
| reservedFile=filename |
| markerFile | EXPEREMENTAL | slide files |
|---|
This option specifies the name of a marker file. Marker files provide a way for each slide file to find its main set index when accessed via a symlink. The contents of the marker file is not important -- only its location is important. The system searches for a marker file by looking in the current directory and all its parent directories. It then stores the relative location of the marker file in each slide file. When a slide file is used as a symlink, the set to which it belongs can be found from the stored marker file location.
The marker location will not be stored in the slide file under the following conditions:
A marker file should be located in the parent directory of the directory which contains the slide file set. In many cases, this will be the starting directory, but it may also be any subdirectory which contains sets. In this way, the marker file indicates that "this directory is not a set", and slides should not link to it.
| markerFile=filename |
| sort | index files / slide files |
|---|
Specifies the method used to sort index entries.
| sort=string | default |
|---|
| sort=numeric |
|---|
| sort=none |
|---|
| defaultOrder | index files / slide files |
|---|
This option specifies the default sort order that is used for files that do not specify a sort order. Be careful when changing this value, especially in the master configuration file, because it may affect the sort order of existing directories in unintended ways.
| defaultOrder=order |
| symlinkOrder | index files / slide files |
|---|
This option determines how ImajSite uses the sort order for files listed in symlinks files.
| symlinkOrder=file | default |
|---|
| symlinkOrder=defaultOrder |
|---|
| thumbFileList | index files |
|---|
The thumbnail file name list defines the list of file names that can be used as directory thumbnails. By default, the list contains two file names: "thumb.jpg" and "thumb.gif". This option allows the thumbnail file name list to be redefined by the user, so that any image file name may be used as a thumbnail file. If a directory contains more than one thumbnail file from the list, the first one in the list will be used.
This option does not affect the thumbnail image file name that appears in the automatically generated header for the current index. It also does not reserve the thumbnail file name in the current directory. You must use the "reservedFile" option to do that. This option only affects which thumbnails appear in the index body (list of links). This option is typically used in a local configuration file to specify which thumbnails appear in that index when alternate thumbnails are available (e.g. different size or different content).
| thumbFile | index files |
|---|
This option adds a thumbnail file name to the beginning of the current thumbFileList. This option may appear multiple times in a configuration file -- once for each thumbnail file name, however you are limited to a maximum of about five thumbnail file names. See the "thumbFileList" option for more information.
| thumbFile=filename |
| dbThumbFileList | index database |
|---|
This option defines the list of directory thumbnail file names that can appear in the index database file. A thumbnail file name must appear in the index database file in order for it to be displayed in the index in CGI mode. The "thumbFileList" option determines which of these files will be displayed in CGI mode. This list defaults to the standard thumbnail file names.
| dbThumbFile | index database |
|---|
This option adds a thumbnail file name to the beginning of the current dbThumbFileList. This option may appear multiple times in a configuration file -- once for each thumbnail file name, however you are limited to a maximum of about five thumbnail file names. See the "dbThumbFileList" option for more information.
| thumbFile=filename |
| thumbSize | thumbnails |
|---|
This option specifies the maximum dimensions of thumbnail image files created by ImajSite.
ImajSite preserves the aspect ratio of the original image, and does not add borders around the thumbnail. Therefore, the actual dimensions of the thumbnails will vary, but they will not exceed the specified maximum width and height. If the original image is smaller than the maximum width and height, it will not be enlarged.
| thumbSize=width,height |
| thumbQuality | thumbnails |
|---|
This option specifies the JPEG quality of thumbnail image files created by ImajSite. The scale is from 1 to 100. Higher numbers represent higher quality (and less compression). If you want the absolute highest quality thumbnails and don't mind bigger files, set this to a value of 85 or more.
| thumbQuality=quality |
| thumbFast | thumbnails |
|---|
This option enables or disables fast thumbnail generation mode. When fast mode is enabled, a faster algorithm is used to read JPEG image files, but the thumbnail quality is not quite as good (may have less consistant quality among different size images). In most cases, the quality is perfectly acceptable. If you want the absolute highest quality thumbnails (and have a fast machine), you should turn this option off.
| thumbFast=yes | default |
|---|
| thumbFast=no |
|---|
| thumbSharpness | thumbnails |
|---|
This option specifies the sharpness of thumbnail image files created by ImajSite. The scale is from 1 to 100. Higher numbers represent sharper images. The default value should be used for most cases.
| thumbSharpness=sharpness |
| keywordThumbs | thumbnails |
|---|
This option enables or disables the keyword thumbnails option. The keyword thumbnails option saves time and disk space by generating thumbnails only for images that need them.
| keywordThumbs=yes |
|---|
| keywordThumbs=no | default |
|---|
| indexDB | index files |
|---|
This option specifies the name of the index database file used in CGI mode. This option is required in CGI mode.
| indexDB=filename |
| startDir | index files |
|---|
This option specifies the full file system path to the starting directory which contains the icons subdirectory and the index database. If this option is specified, all URL references in the generated index will contain absolute URLs instead of relative URLs. This option, along with the "startURL" option, allows the CGI executable to be located in any directory on any server.
| startDir=pathname |
| startURL | index files |
|---|
This option specifies the full URL to the starting directory specified by the "startDir" option. This option will have no effect if the "startDir" option is not also specified. The URL specified by this option depends on the configuration of the host web server.
If the CGI executable is located on a different server than the starting directory, this must be in the form:
http://hostname[:port]/[path]If the CGI executable is located on the same server as the starting directory, this may be in the form:
/[path]If this option is not specified, it defaults to "/".
| startURL=URL |
| map | index files |
|---|
This option maps a file system directory path to a URL. It can appear multiple times in the configuration file.
When the system needs to determine the URL for a given file, it scans all the map options in the configuration file for a basePath that is a parent directory of the file. If it finds a matching basePath, the full file path is converted to a URL by replacing the basePath with the baseURL (and converting the remaining relative path to URL format). If it doesn't find a matching basePath, it uses the startDir and startURL options to perform the conversion.
| map=basePath; baseURL |
Note: The semicolon (;) must be followed by a space, as shown.
Examples:
| workingDir | index files |
|---|
This option specifies the working directory that the program should run in. The current working directory is used as a starting point to find the icons directory, the index database, and the source index file. This option must be located in the CGI configuration file.
| workingDir=pathname |
Note: this option may be replaced by other options in the future
| cgiURL | index files |
|---|
This option specifies the full URL to the "mkhtmidx.exe" file in the CGI bin directory. It is used to generate page links in multi-page search indexes. Since the name of the CGI executable may be renamed to something other than "mkhtmidx.exe", this URL must include the name of the CGI executable file. The default value is the name of the CGI executable file, which is sufficient for must purposes.
If the CGI executable is located on a different server than the starting directory, this must be in the form:
http://hostname[:port]/[cgi-path/]cgi-filenameIf the CGI executable is located on the same server as the starting directory, this may be in the form:
/[cgi-path/]cgi-filename
| cgiURL=URL |
| cacheDir | index files |
|---|
This option enables search caching, and specifies the directory where cache files will be stored. Cache files contain the results of a previous CGI search. This option currently supports only a single global cache file, and is not re-entrant. Do not enable this option in multiple client configurations.
| cacheDir=pathname |
| shuffle | index files |
|---|
This option enables or disables shuffle mode. When shuffle mode is enabled, the results are displayed in random order, instead of the order in which they appear in the index database. Shuffle mode can only be used when search caching is enabled. When a new cache is created, the order of the entries in the cache is randomized. If search caching is not enabled, this option is ignored.
| shuffle=yes |
|---|
| shuffle=no | default |
|---|
index=formatted slides=window links=open backlink=close layout=table format=auto configFile=makeindx.bat embed=avi embed=mov embed=mpg embed=mpeg embed=rm