Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tlug] Apache mod_autoindex issue...



Hi,

This may be OT, not sure...

I have a small issue with Apache mod_autoindex behaviour.

I use the IndexStyleSheet directive, so that I could "play" with presentation with some CSS.

My plan was to hide the "description" column for small screens, such as mobile phones.

This column is given the class "indexcoldesc" by Apache.
However, pure directories have no description, and no class for this column.

For example, a directory will have (for the 2 last columns):
<td class="indexcolsize">  - </td><td>&nbsp;</td>
While a regular file will have something like:
<td class="indexcolsize">1.8M</td><td class="indexcoldesc">GZIP compressed tar archive</td>
It is therefore impossible to hide the column in my CSS with its class name (I can do it with column number, but I don't like it very much).

Do you know if, either:
- it is possible to give a description to directories (I really spent time on looking for it, with no success).
- Or, if I could by some magic get Apache to fill the class name even for directories?

I should add that with unknown files extensions, I have the same issue (no class name in desc column).

Regards,

Bruno.

--
2 + 2 = 5, for very large values of 2.

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links