mirror of
https://github.com/apache/httpd.git
synced 2026-01-06 09:01:14 +03:00
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
This commit is contained in:
@@ -545,7 +545,8 @@ IndexIgnore README .htaccess *~
|
||||
REL="Help"
|
||||
><STRONG>Compatibility:</STRONG></A> '+/-' syntax and merging of multiple
|
||||
<SAMP>IndexOptions</SAMP> directives is only available with
|
||||
Apache 1.3.3 and later
|
||||
Apache 1.3.3 and later; the <samp>FoldersFirst</samp> option is only
|
||||
available with Apache 1.3.10 and later
|
||||
<P>
|
||||
|
||||
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 <SAMP>IndexOptions</SAMP> directive already
|
||||
specified for the current scope.</STRONG>
|
||||
</BLOCKQUOTE>
|
||||
<dt><a name="indexoptions:foldersfirst">FoldersFirst
|
||||
(<i>Apache 1.3.10 and later</i>)</a></dt>
|
||||
<dd>
|
||||
If this option is enabled, subdirectories in a FancyIndexed listing
|
||||
will <i>always</i> 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 <samp>FoldersFirst</samp> is enabled,
|
||||
subdirectory <samp>Zed</samp> will be listed before subdirectory
|
||||
<samp>Beta</samp>, which will be listed before normal files
|
||||
<samp>Gamma</samp> and <samp>Alpha</samp>.
|
||||
<b>This option only has an effect if
|
||||
<a href="#indexoptions:fancyindexing"><samp>FancyIndexing</samp></a>
|
||||
is also enabled.</b></dd>
|
||||
<DT><A NAME="indexoptions:iconheight">IconHeight[=pixels] (<EM>Apache 1.3 and later</EM>)</A>
|
||||
<DD>
|
||||
<!--%plaintext <?INDEX {\tt IconHeight} index option> -->
|
||||
@@ -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:
|
||||
<BLOCKQUOTE><CODE>
|
||||
<Directory /web/docs> <BR>
|
||||
IndexOptions FancyIndexing <BR>
|
||||
</Directory><BR>
|
||||
<Directory /web/docs/spec> <BR>
|
||||
IndexOptions ScanHTMLTitles <BR>
|
||||
<BLOCKQUOTE><pre>
|
||||
<Directory /web/docs>
|
||||
IndexOptions FancyIndexing
|
||||
</Directory>
|
||||
</CODE></BLOCKQUOTE>
|
||||
<Directory /web/docs/spec>
|
||||
IndexOptions ScanHTMLTitles
|
||||
</Directory>
|
||||
</pre></BLOCKQUOTE>
|
||||
then only <CODE>ScanHTMLTitles</CODE> will be set for the /web/docs/spec
|
||||
directory.
|
||||
</P>
|
||||
|
||||
Reference in New Issue
Block a user