dlevens Posted June 16, 2004 Share Posted June 16, 2004 I have a few folders on my website that have no html and I want only to list several files. I noticed the default directory listing only shows the first 20 characters of the file name. Is there a way to increase this to display the whole file name? I know I can create an index.html file but I am always adding and removing files and I dont want to have to open up the file to add links to the files. Unless this can be automated? Dennis Quote Link to comment Share on other sites More sharing options...
TCH-Dick Posted June 16, 2004 Share Posted June 16, 2004 http://www.hotscripts.com/Detailed/23916.html Quote Link to comment Share on other sites More sharing options...
dlevens Posted June 17, 2004 Author Share Posted June 17, 2004 WOW, amazing find. I love this script. Finally a nice way to display a list of files. Many thanks, Dennis Quote Link to comment Share on other sites More sharing options...
boxturt Posted June 17, 2004 Share Posted June 17, 2004 Yea - thanks Dick. I ended up using it as well. It's pretty nice and a heck of a lot nicer than looking at the default. Quote Link to comment Share on other sites More sharing options...
unibrain Posted June 17, 2004 Share Posted June 17, 2004 Or you could use a couple of .htaccess directives, add a readme.html and a HEADER.html and you get a very nice display. See This example Thhe mod_autoindex documentation gives all the details on how to do this. I prefer the mod_autoindex method since it does not rely on yet another script that I have to keep updating In the .htaccess IndexIgnore robots.txt admin include scripts images style IndexOptions DescriptionWidth=* NameWidth=* IndexOptions +IconsAreLinks +SuppressColumnSorting +SuppressLastModified IndexOrderDefault Ascending Size AddDescription "US Government on how to stop ID Theft " IDTheftVideo.avi etc HEADER.html is some standard html README.html is some text to describe the directory. Quote Link to comment Share on other sites More sharing options...
TCH-Dick Posted June 18, 2004 Share Posted June 18, 2004 There is another way if you do not want to use a script. In cPanel goto Site Management > Index Manager select the folder you want to change then select Standard Indexing (text only) > Save Its not fancy but it allows for more than 20 characters. I tested it by creating a file with 50 characters. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.