
Chapter 6. Handling directories
AddIcon /icons/dir.gif "^^DIRECTORY^^"
AddIcon /icons/back.gif ".."
AddAlt "Directory" "^^DIRECTORY^^"
AddAlt "Up" ".."
Figure 6-25. httpd.conf: Support for directories
There is one last change we should make after all this playing with icons. An icon
is an embedded image. It is generally regarded as a “good thing” to annotate the
<IMG/> tag with the height and width of the image in pixels. We can specify these
with the IndexOptions options IconWidth and IconHeight. These cause the web
server to include width="20" height="22" in the <IMG/> tag’s attributes. These
numbers are wired into Apache and correspond to the icons it ships with, all of which
are 20
22 pixels in size.
IndexOptions FancyIndexing ... IconWidth IconHeight
Figure 6-26. httpd.conf: Specifying icon sizes
Conclusion
And now our listings look a bit more colourful. But this is a lot of effort for limited
presentational value.
Figure 6-27. Listing with icons
Adding text to the listing
In addition to having a listing of files, it is possible to place text above and below
the listing. This can either be in the form of plain text or full-blown HTML. We will
concentrate on the latter.
44
Comentarios a estos manuales