You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@apache.org on 2010/01/26 03:36:11 UTC

svn commit: r903055 - /httpd/httpd/trunk/docs/manual/mod/mod_autoindex.xml

Author: rbowen
Date: Tue Jan 26 02:36:10 2010
New Revision: 903055

URL: http://svn.apache.org/viewvc?rev=903055&view=rev
Log:
Adds documentation for the new AddAltClass IndexOption, and for the new
CSS classes provided by IndexStyleSheet


Modified:
    httpd/httpd/trunk/docs/manual/mod/mod_autoindex.xml

Modified: httpd/httpd/trunk/docs/manual/mod/mod_autoindex.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_autoindex.xml?rev=903055&r1=903054&r2=903055&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_autoindex.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_autoindex.xml Tue Jan 26 02:36:10 2010
@@ -830,6 +830,20 @@
 
       <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 @@
     </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>