From: Ken Coar Date: Wed, 1 Dec 1999 20:33:48 +0000 (+0000) Subject: Add a FoldersFirst keyword to the IndexOptions directive, which X-Git-Tag: 1.3.10~131 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f73baa3bd2a481eb661a24b641c26ec73f732916;p=apache Add a FoldersFirst keyword to the IndexOptions directive, which causes subdirectories to always appear first in FancyIndexed listings. Reviewed by: Ryan Bloom, Martin Kraemer, Jim Jagielski git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84205 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_autoindex.html b/docs/manual/mod/mod_autoindex.html index 7fedd69c48..fde790b571 100644 --- a/docs/manual/mod/mod_autoindex.html +++ b/docs/manual/mod/mod_autoindex.html @@ -545,7 +545,8 @@ IndexIgnore README .htaccess *~ REL="Help" >Compatibility: '+/-' syntax and merging of multiple IndexOptions directives is only available with - Apache 1.3.3 and later + Apache 1.3.3 and later; the FoldersFirst option is only + available with Apache 1.3.10 and later

The IndexOptions directive specifies the behavior of the directory indexing. @@ -564,6 +565,21 @@ This turns on fancy indexing of directories. is combined with any IndexOptions directive already specified for the current scope. +

FoldersFirst + (Apache 1.3.10 and later)
+
+If this option is enabled, subdirectories in a FancyIndexed listing +will always appear first, followed by normal files in the +directory. The listing is basically broken into two components, +the files and the subdirectories, and each is sorted separately and +then displayed subdirectories-first. For instance, if the sort order +is descending by name, and FoldersFirst is enabled, +subdirectory Zed will be listed before subdirectory +Beta, which will be listed before normal files +Gamma and Alpha. +This option only has an effect if +FancyIndexing +is also enabled.
IconHeight[=pixels] (Apache 1.3 and later)
@@ -648,14 +664,14 @@ directive in recent (post-1.3.0) versions of Apache. The default is that no options are enabled. If multiple IndexOptions could apply to a directory, then the most specific one is taken complete; the options are not merged. For example: -
-<Directory /web/docs>
-IndexOptions FancyIndexing
-</Directory>
-<Directory /web/docs/spec>
-IndexOptions ScanHTMLTitles
+
+<Directory /web/docs>
+    IndexOptions FancyIndexing
 </Directory>
-
+<Directory /web/docs/spec> + IndexOptions ScanHTMLTitles +</Directory> +
then only ScanHTMLTitles will be set for the /web/docs/spec directory.