You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Christopher Wolf <te...@thewolfden.org> on 2003/04/21 21:08:29 UTC
[users@httpd] AddIcon for icons within the listed directory during FancyIndexing
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^^"
---------------------------------------------------------------------
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
Re: [users@httpd] AddIcon for icons within the listed directory during FancyIndexing
Posted by Christopher Wolf <te...@thewolfden.org>.
Joshua Slive said:
>
> On Mon, 21 Apr 2003, Christopher Wolf wrote:
>> > 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.
>
> Ahh. I misunderstood what you wanted.
>
> No, I don't believe that is possible. You could, of course, hack
> mod_autoindex.
That's what I thought. I had hoped I missed something. :(
I'll probably use a CGI to emulate the FancyIndexing as I already have one
that works similarly (has better control over sort order).
---------------------------------------------------------------------
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
Re: [users@httpd] AddIcon for icons within the listed directory
during FancyIndexing
Posted by Joshua Slive <jo...@slive.ca>.
On Mon, 21 Apr 2003, Christopher Wolf wrote:
> > 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.
Ahh. I misunderstood what you wanted.
No, I don't believe that is possible. You could, of course, hack
mod_autoindex.
Joshua.
---------------------------------------------------------------------
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
Re: [users@httpd] AddIcon for icons within the listed directory during FancyIndexing
Posted by Christopher Wolf <te...@thewolfden.org>.
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
Re: [users@httpd] AddIcon for icons within the listed directory
during FancyIndexing
Posted by Joshua Slive <jo...@slive.ca>.
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^^
Joshua.
---------------------------------------------------------------------
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