httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Wolf" <te...@thewolfden.org>
Subject Re: [users@httpd] AddIcon for icons within the listed directory during FancyIndexing
Date Mon, 21 Apr 2003 19:42:07 GMT
Joshua Slive said:
>On Mon, 21 Apr 2003, Christopher Wolf wrote:
>> Is there a method, during FancyIndexing, to specify that the icon to
>> display for each directory is stored within that directory?  [Such as
>> the folder.jpg icons used by WinXP.]
>>
>> I could not find a way to generate a reference to each directory in
>> the AddIcon methods, such as "AddIcon $DIRECTORY/folder.jpg
>> ^^DIRECTORY^^"
>
> Have you tried just AddIcon folder.jpg ^^DIRECTORY^^


Yes, that does not work, because that filename is a relative filename, and
its relative to the current directory, not the individual subdirectories.

Given ...

/www/folder.jpg
/www/dir1/folder.jpg
/www/dir2/folder.jpg
/www/dir2/subdir/folder.jpg

... when viewing the /www directory, the /www/folder.jpg will be used as
the icon for BOTH the /www/dir1 and /www/dir2 listings since folder.jpg is
relative to the "current" directory, which is just /www

Likewise, when viewing the /www/dir2 directory, the /www/dir2/folder.jpg
icon will be used as the icon for /www/dir2/subdir instead of the
/www/dir2/subdir/folder.jpg icon that it "should" be using.




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message