IntraWeb Archive

XI (doc) – Directory Config

XI (doc) – Directory Config

Directories can be configured using #Dir.cfg.

Each folder can have an optional config file. For directories, the file is always named #Dir.cfg irregardless of the actual folder name and is contained in the folder that it applies to.

Example

[Dir]
Title=Our Team

[Sort]
Doc=Doc.Size

[Dir Sort]
Subdir1
Subdir3
Subdir2

[Doc Sort]
About.html
Team.html
Credits.html

[Folder]

Title

Optional. Contains a descriptive title of the folder. Used for breadcrumbs and directory lister to display a friendlier name for a folder.

[Sort]

Dir

Same as Doc, but applies to sub directories instead.

Doc

Specifies the default sort order for documents. Value is a variable name. Example “Doc.Size”. If no value is specified, “Doc.SortIndex” is used.

[Dir Sort]

Functionality is the same as [Doc Sort] but applies to sub directories instead of documents.

[Doc Sort]

Specifies a manual sorting order for enumerators. An integer value is given to each document in its Doc.SortIndex variable starting at 1 and incrementing. Documents are listed by their full name in the order of the desired sorting. Any documents not listed in this section will be given a value of MaxInt and treated as unsorted. They will appear after the explicitly sorted documents. The order in which they will appear after the explicitly sorted documents is undefined.

[Enum]

Same as Enum section in document config, but applies to the folder.