www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Weinstein <rw...@is7.NYU.EDU>
Subject mod_autoindex/1855: More Control over autoindex layout
Date Sun, 22 Feb 1998 19:21:57 GMT

>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
>Originator:     rw263@is7.NYU.EDU
>Release:        1.3
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

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?
+Create Template and have template recognized via tags and input from the htaccess config
For example, have %FILENAME%, %DATE%, %LAST_MODIFIED%, %DESCRIPTION% or the like and in the
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>
  <td colspan=4><hr noshade></td></tr>

--- TemplateBody Filename Contents --------------------------------------------

--- TemplateFooter Filename Contents ------------------------------------------
[In order for any reply to be added to the PR database, ]
[you need to include <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]

View raw message