FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > General Site Owner Support (All may read/respond) > Open Discussions
User Name
Password  Lost PW

Reply
 
Thread Tools Search this Thread Display Modes
Old 10-25-2000, 04:23 AM   Postid: 9061
Jeff
Site Owner
 
Jeff's Avatar

Forum Notability:
872 pts: Dignified Competence!
[Post Feedback]
 
Join Date: Jun 2000
Location: Great Lakes
Posts: 4,221
Customizing Directory Listing

It might be neat if Apache offered an option to specify a template for the standard directory listing like the customized error pages.

Does anyone know of an easy way to "template-ize" the directory listing.  This would probably be PHP, but I'm wondering if there is a simple index page/script which would provide a template based directory listing (excluding itself, of course) for any directory I put it in, so if I simply wanted to share a directory of temporary/changing photographs, I could drop in the template index.php file and the current directory listing would be created with my site's logo and layout.  Or maybe there would be an even easier way...

Also, is there an easy way to add a description which shows on Apache's directory listing.  What is the max description length?

[This message has been edited by Jeff (edited 10-25-00@04:24 am)]
Jeff is offline   Reply With Quote
Old 10-25-2000, 05:18 AM   Postid: 9062
Justin
Visitor
 
Justin's Avatar

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: Jan 1999
Location: Kissimmee, FL
Posts: 3,672
Technically, your "index.html" (or similar) page is your directory index, just as 404.html (for example) is your 404 page. If a default isn't there, the server comes up with its own default.

You would need to write a script to do this. A simple way might be to create a script within the cgi-bin, and use an index.shtml page to include it in. Perhaps have the cgi script determine the directory based on the referer URL...

The default index can be quite customized, but only within the server configuration (not within .htaccess AFAIK)...

------------------
Justin Nelson
FutureQuest Support
Justin is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 05:29 PM.


Running on vBulletin®
Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2013 FutureQuest, Inc.
FutureQuest, Inc.