RE: [users@httpd] Possible to add columns to dir listings?

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

 



On Fri, 1 Jul 2005, Jaeger wrote:

It can't be done through plain htaccess.

You have three options.

1) Hack the source code for mod_autoindex.  Ugly.

2) Find an alternate module that does this.  Hard.

3) Write something in the language of your choice (perl, php, c, python) that does this, and define it as the "last resort" of your directoryindex, for example DirectoryIndex index.html index.htm index.php cgi-bin/newlister.cgi (this is not part of the apache distro, it's something you would have to write. I consider this easier to do than the above, easily doable even in a vhost non-root situation (as long as you have the allowoverride permissions) and you could extract whatever info you like.

If you're running mod_perl, here's one possible solution:

http://search.cpan.org/~gozer/Apache-AutoIndex-0.08/AutoIndex.pm

For PHP, here's another:

http://autoindex.sourceforge.net/index.php?id=features

Amazing what two minutes worth of google can get you.

HTH, YMMV, TIA

-Dan


OK, go to http://archive.apache.org/dist/commons.  See how there are sortable column headings named "Name", "Last modified", "Size", and "Description"?  I want to add one but it sounds like you are saying that that is not possible.  Hope that's clear.

-----Original Message-----
From: Joshua Slive [mailto:jslive@xxxxxxxxx]
Sent: Friday, July 01, 2005 10:56 AM
To: users@xxxxxxxxxxxxxxxx
Subject: Re: [users@httpd] Possible to add columns to dir listings?

On 7/1/05, Jaeger <apache@xxxxxxxx> wrote:
Does anyone know if it is possible to add custom columns to
directory
listings using .htaccess?  Thx

No, it is not possible.  If you were a little more specific
about what you want to do, we might be able to give you some
suggestions.

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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





--

"It doesn't matter where I live, because I live in dataspace.  That's my
hometown."

-Steve Roberts, Builder of BEHEMOTH

--------Dan Mahoney--------
Techie,  Sysadmin,  WebGeek
Gushi on efnet/undernet IRC
ICQ: 13735144   AIM: LarpGM
Site:  http://www.gushi.org
---------------------------


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux