Forum

Index Style - Add icons to files

Prit
15 July 2009, 21:51
Hi Hugo,

Is there a way to add icons to the files based on file types and to the directories in the default index page shown when enabling ShowIndex?

Hiawatha version: 6.15
Operating System: Ubuntu 9.04
Hugo Leisink
16 July 2009, 11:59
Technically, yes, that's possible. But.... I don't think it's wise to implement that in Hiawatha. I've received e-mails from users who wanted colored names based on extension, more layout markup abilities, more file information, etc. The index was meant as a quick browse-though-some files feature. Not as an explorer-like file browser. I don't want Hiawatha's index to become full-blown-up and slow.

It's very easy to write a CGI which shows a directoy listing. Everybody can customize his own CGI to match his own requirements. I think it's best to keep Hiawatha's index light, easy and fast. Hope you understand.
Prit
16 July 2009, 12:09
I absolutely understand. Even we used to use a PHP directory script to serve files. But later, we thought to keep it simple.
This topic has been closed.