>Number:         1855
>Category:       mod_autoindex
>Synopsis:       More Control over autoindex layout
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          change-request
>Submitter-Id:   apache
>Arrival-Date:   Sun Feb 22 11:30:01 PST 1998
>Last-Modified:
>Originator:     [EMAIL PROTECTED]
>Organization:
apache
>Release:        1.3
>Environment:
N/A
>Description:
Looking for a way to have more control over the output of an autogenerated HTML
File.  For instance, if an index.html file isn't present, mod_autoindex takes 
over
however, you are forced into using THEIR output.  So it contains a <PRE><HR> and
other tags, that you really have no control over the "view" of the page.  It 
would
make more sense for the htaccess file to allow a 'Template Filename' line.  
There
one could have the filename specify the format of the Header, Body and Footer 
of the
Page that the server creates.  This would allow of full customization of the 
autoindex
page.

Is this duable?  Can it be added to a future release of apache (maybe even 1.3 
*HINT HINT*)
See the "Suggested way to fix"
 or email for any questions.  This is just ONE way
of allowing more configuration.  Templates seems like a pretty cool idea?  
As for the tags in the templates and the such, dunno how well the %Filename%, 
and other
%'s would work.... may need a different way to delineate?  Any comments on any 
of this?
>How-To-Repeat:
N/A
>Fix:
+Create Template and have template recognized via tags and input from the 
htaccess config file.
For example, have %FILENAME%, %DATE%, %LAST_MODIFIED%, %DESCRIPTION% or the 
like and in the htaccess
file have a line like: TemplateHeader Filename.
                       TemplateBody Filename
                       TemplateFooter Filename

This would then scan for specified tags in this case they are delineated by 
%'s, and
it would replace those with the actual contents.  This allows for FULL 
customization
the autoindex file?

If replacing in the header, then the hyperlinks to sort (added in 1.3) could be 
auto
added and the icon could be added in the BODY section under the FileName area.
This seems like a way to have FULL control over the autocreated indexing?

Contents of possible Template Files are below?

--- TemplateHeader Filename Contents ------------------------------------------
<table border=0>
 <tr>
  <td>%Filename%</td>
  <td>%LastModified%</td>
  <td>%Size%</td>
  <td>%Description%</td>
 </tr>
 <tr>
  <td colspan=4><hr noshade></td></tr>
-------------------------------------------------------------------------------

--- TemplateBody Filename Contents --------------------------------------------
 <tr>
  <td>%Filename%</td>
  <td>%LastModified%</td>
  <td>%Size</td>
  <td>%Description</td>
 </tr>
-------------------------------------------------------------------------------

--- TemplateFooter Filename Contents ------------------------------------------
 </table>
------------------------------------------------------------------------------
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <[EMAIL PROTECTED]> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]



Reply via email to