You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Mladen Turk <ml...@mail.inet.hr> on 2001/08/09 18:05:59 UTC

[PATCH] mod_autoindex CSS

Hi all,

I was always frustrated with the fact that mod_autoindex gives you only the
default hard coded look.
So here is a small patch that enables link to CSS file in the generated
directory index.

It works like HEADER and README, but instead of reading that file it only
checks for the existence and sends <link rel=stylesheet
href="/someurl/STYLSHEET" type="text/css"> from the  emit_preamble.

I've added an conf directive "StyleSheetFile" (the exact name can be
discussed), so in the conf you'll need to put something like

<IfModule mod_autoindex.c>
   ReadmeName README
   HeaderName HEADER
   StyleSheetName STYLSHEET
   IndexIgnore .??* *~ *# HEADER* README* STYLSHEET* RCS CVS *,v *,t
</IfModule>

I've included in the attachment also a sample STYLSHEET file that gives you
bluish background, some hoover options, etc..
I don't know if nowadays there are some browsers that doesn't support the
CSS.

What do you guys think of that?

MT

Re: [PATCH] mod_autoindex CSS

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
Mladen,

  We definately want to extend these things.  That means giving the table entries
some class or id information.  But we need to think through new directives, you can
already set IndexOptions SuppressPreamble, which lets HEADER.html do _all_ the work
of setting up the head, title, stylesheet, and body.

Bill

----- Original Message ----- 
From: "Mladen Turk" <ml...@mail.inet.hr>
To: <ne...@apache.org>
Sent: Thursday, August 09, 2001 11:05 AM
Subject: [PATCH] mod_autoindex CSS


> Hi all,
> 
> I was always frustrated with the fact that mod_autoindex gives you only the
> default hard coded look.
> So here is a small patch that enables link to CSS file in the generated
> directory index.
> 
> It works like HEADER and README, but instead of reading that file it only
> checks for the existence and sends <link rel=stylesheet
> href="/someurl/STYLSHEET" type="text/css"> from the  emit_preamble.
> 
> I've added an conf directive "StyleSheetFile" (the exact name can be
> discussed), so in the conf you'll need to put something like
> 
> <IfModule mod_autoindex.c>
>    ReadmeName README
>    HeaderName HEADER
>    StyleSheetName STYLSHEET
>    IndexIgnore .??* *~ *# HEADER* README* STYLSHEET* RCS CVS *,v *,t
> </IfModule>
> 
> I've included in the attachment also a sample STYLSHEET file that gives you
> bluish background, some hoover options, etc..
> I don't know if nowadays there are some browsers that doesn't support the
> CSS.
> 
> What do you guys think of that?
> 
> MT
>