]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Adds documentation for the new AddAltClass IndexOption, and for the new
authorRich Bowen <rbowen@apache.org>
Tue, 26 Jan 2010 02:36:10 +0000 (02:36 +0000)
committerRich Bowen <rbowen@apache.org>
Tue, 26 Jan 2010 02:36:10 +0000 (02:36 +0000)
CSS classes provided by IndexStyleSheet

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@903055 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_autoindex.xml

index 7564184e6e2379b87a9e2a99240bfdbbd3cfb492..1c514156f0e1e3589e599f8397e3bf88ae29c6a2 100644 (file)
@@ -830,6 +830,20 @@ indexing</description>
 
       <dd>The <code>XHTML</code> keyword forces <module>mod_autoindex</module>
       to emit XHTML 1.0 code instead of HTML 3.2.</dd>
+
+      <dt><a name="indexoptions.addaltclass"
+               id="indexoptions.addaltclass">AddAltClass</a></dt>
+      <dd>Adds an additional CSS class declaration to each row of the
+      directory listing table when <code>IndexOptions HTMLTable</code> 
+      is in effect and an <code>IndexStyleSheet</code> is defined.
+      Rather than the standard <code>even</code> and <code>odd</code>
+      classes that would otherwise be applied to each row of the table,
+      a class of <code>even-<em>ALT</em></code> or
+      <code>odd-<em>ALT</em></code> where <em>ALT</em> is either the
+      standard alt text associated with the file tyle (eg. <em>snd</em>,
+      <em>txt</em>, <em>img</em>, etc) or the alt text defined by one of
+      the various <code>AddAlt*</code> directives.
+      </dd>
     </dl>
 
    <!--
@@ -946,10 +960,23 @@ Name|Date|Size|Description</syntax>
     </example>
 
     <p>Using this directive in conjunction with <code>IndexOptions
-    HTMLTable</code> also adds <code>ai-tr-odd</code> and
-    <code>ai-tr-even</code> class declarations to alternating rows of
-    the directory listing table, so that you can style alternate rows of
-    the table differently.</p>
+    HTMLTable</code> adds a number of CSS classes to the resulting HTML.
+    The entire table is given a CSS id of <code>indexlist</code> and the
+    following classes are associated with the various parts of the
+    listing:</p>
+
+    <table>
+    <tr><th>Class</th><th>Definition</th></tr>
+    <tr><td>tr.indexhead</td><td>Header row of listing</td></tr>
+    <tr><td>th.indexcolicon and td.indexcolicon</td> <td>Icon column</td></tr>
+    <tr><td>th.indexcolname and td.indexcolname</td> <td>File name column</td></tr>
+    <tr><td>th.indexcollastmod and td.indexcollastmod</td> <td>Last modified column</td></tr>
+    <tr><td>th.indexcolsize and td.indexcolsize</td> <td>File size column</td></tr>
+    <tr><td>th.indexcoldesc and td.indexcoldesc</td> <td>Description column</td></tr>
+    <tr><td>tr.breakrow</td> <td>Horizontal rule at the bottom of the table</td></tr>
+    <tr><td>tr.odd and tr.even</td> <td>Alternating even and odd rows</td></tr>
+    </table>
+
 </usage>
 </directivesynopsis>