Return-Path: Delivered-To: apmail-apache-docs-archive@apache.org Received: (qmail 98271 invoked by uid 500); 20 Aug 2001 03:15:20 -0000 Mailing-List: contact apache-docs-help@apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: apache-docs@apache.org Delivered-To: mailing list apache-docs@apache.org Received: (qmail 98248 invoked by uid 500); 20 Aug 2001 03:15:20 -0000 Delivered-To: apmail-httpd-docs-1.3-cvs@apache.org Date: 20 Aug 2001 03:10:32 -0000 Message-ID: <20010820031032.69980.qmail@icarus.apache.org> From: rbowen@apache.org To: httpd-docs-1.3-cvs@apache.org Subject: cvs commit: httpd-docs-1.3/htdocs/manual/mod mod_autoindex.html X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N rbowen 01/08/19 20:10:32 Modified: htdocs/manual/mod mod_autoindex.html Log: Added discussion of query arguments to reorder the directory index. Revision Changes Path 1.43 +40 -0 httpd-docs-1.3/htdocs/manual/mod/mod_autoindex.html Index: mod_autoindex.html =================================================================== RCS file: /home/cvs/httpd-docs-1.3/htdocs/manual/mod/mod_autoindex.html,v retrieving revision 1.42 retrieving revision 1.43 diff -u -r1.42 -r1.43 --- mod_autoindex.html 2001/08/19 19:33:42 1.42 +++ mod_autoindex.html 2001/08/20 03:10:32 1.43 @@ -104,6 +104,46 @@

See also: Options and DirectoryIndex.

+

Autoindex Request Query Arguments

+ +

The column sorting headers themselves are self-referencing +hyperlinks that add the sort query options to reorder the directory +listing. The query options are of the form X=Y, where +X is one of N (file Name), +M (file last Modified date), S +(file Size, or D (file Description), +and Y is one of A (Ascending) or +D (Descending).

+ +

When options other than the file name are used as the sorting key, the +secondary key is always the file name. (When the file name is used to +sort by, there is no need of a secondary sort key, since file names +are guaranteed to be unique, and so the sort order is +unambiguous.)

+ +

Example:

+ +

If the URL http://your.server.name/foo/ produces a +directory index, then the following URLs will produce different sort +orders:

+ +
    +
  • http://your.server.name/foo/?M=D sorts the directory +by last modified date, descending.
  • +
  • http://your.server.name/foo/?D=A sorts the directory +by file description, ascending.
  • +
  • http://your.server.name/foo/?S=A sorts the directory +by file size, ascending.
  • +
+ +

See IndexOrderDefault +to set the default directory ordering.

+ +

Note also that when the directory listing is ordered in one +direction (ascending or descending) by a particular column, the link at +the top of that column then reverses, to allow sorting in the opposite +direction by that same column.

+

AddAlt directive

--------------------------------------------------------------------- To unsubscribe, e-mail: apache-docs-unsubscribe@apache.org For additional commands, e-mail: apache-docs-help@apache.org