[Mailman-Users] Just archives

David Dyer-Bennet dd-b at dd-b.net
Sun Sep 3 03:00:17 CEST 2006


On 9/1/06, David Dyer-Bennet <dd-b at dd-b.net> wrote:
> On 9/1/06, Mark Sapiro <msapiro at value.net> wrote:
> > Mark Sapiro wrote:
> > >
> > >You may wish to write some kind of script to remove the 'more
> > >information about this list' links from the contents and index pages.
> >
> >
> > Or you can remove them from the templates before running bin/arch.
> >
> > templates/en/archtoc.html
> > templates/en/archtocnombox.html
> > templates/en/archidxhead.html
> > templates/en/archidxfoot.html
> >
> > assuming English.
>
> Hey, looking at those templates plus article.html, I can put in the
> CSS stuff I want right there; the code doesn't even have to be
> touched.

So, here's the sort of thing I meant.  This is the article.html
template, modified with a lot more structure and ID and CLASS tags.
With this I can do remarkable amounts of format control (to make it
match the appearance of an existing site) by providing a style sheet.

Now on to do the *other* templates to my satisfaction!

Ways in which this is not a drop-in replacement:

1.  Adds the list name to the page title line
2.  Requires that a style sheet file be put in the mailing list
archive directory for each list; and I haven't made the changes to
list creation to do that automatically.

It should be easy to create a style sheet that, except for #1, makes
the results look identical to the old templates, but I haven't done
that yet.

Anybody think this is worth working up more thoroughly and
contributing?  Or is it all going to be rolled over by other work
currently ongoing that will do all this in more in a more flexible
way?

!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE>%(listname)s: %(title)s
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made"
HREF="mailto:%(email_url)s?Subject=%(subject_url)s;In-Reply-To=%(in_reply_to_\
url)s">
   <META NAME="robots" CONTENT="index,nofollow">
   <LINK REL="stylesheet" type="text/css" href="../liststyle.css" />
   <LINK REL="shortcut icon" href="../listfavicon.ico" />
   %(encoding)s
   %(prev)s
   %(next)s
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <DIV ID="wholepage">
     <DIV ID="artlisthead">%(listname)s</DIV>
     <DIV ID="pagebody">
       <H1 ID="arthead">%(subject_html)s</H1>
        <DIV ID="artsend">
          <DIV ID="artsender"><SPAN CLASS="artauthname">%(author_html)s</SPAN>
          <A HREF="mailto:%(email_url)s?Subject=%(subject_url)s;In-Reply-To=%(in_reply_to_url)s"
             TITLE="%(subject_html)s" class="artauthmailto">%(email_html)s
             </A></DIV>
          <DIV ID="artsendtime"><SPAN
CLASS="artdatestr">%(datestr_html)s</SPAN></DIV>
        </DIV>
        <DIV ID="artprenav">
          <DIV class="artnav"><UL CLASS="artnav">
              %(prev_wsubj)s
              %(next_wsubj)s
               <LI> <SPAN CLASS="artnavhd">Messages sorted by:</SPAN>
                    <a href="date.html#%(sequence)s">[ date ]</a>
                    <a href="thread.html#%(sequence)s">[ thread ]</a>
                    <a href="subject.html#%(sequence)s">[ subject ]</a>
                    <a href="author.html#%(sequence)s">[ author ]</a>
               </LI>
             </UL></DIV>
        </DIV>
        <HR ID="artabove">
        <DIV ID="artbody">
    <!--beginarticle-->
    %(body)s
    <!--endarticle-->
        </DIV>
        <HR ID="artbelow">
        <DIV ID="artpostnav">
          <DIV class="artnav"><UL CLASS="artnav">
              %(prev_wsubj)s
              %(next_wsubj)s
               <LI> <SPAN CLASS="artnavhd">Messages sorted by:</SPAN>
                    <a href="date.html#%(sequence)s">[ date ]</a>
                    <a href="thread.html#%(sequence)s">[ thread ]</a>
                    <a href="subject.html#%(sequence)s">[ subject ]</a>
                    <a href="author.html#%(sequence)s">[ author ]</a>
               </LI>
             </UL></DIV>
        </DIV>
    <hr ID="artbot">
    <DIV ID="artlistinfo"><a href="%(listurl)s">More information about
the %(listname)s
    mailing list</a></DIV>
  </DIV>
</DIV>
</body></html>

And here's a stylesheet to work with it:

/* Dragaera list style sheet, as modifications to default mail archive
style sheet. */
@import url(http://dev.dragaera.info/d2.css);
/* @impurt url(/mailmanarchive.css); */
/* Local overrides */
/* For now put everything here */

div#pagebody {
    margin: 25px;
}

div#artlisthead {
    position: relative;
    overflow: hidden;
    text-align: center;
    height: 64px;
    font-size: 260%;
    font-weight: 900;
    font-family: garamond, "times new roman", times, serif;
    background-color: black;
    background-image: url(http://dev.dragaera.info/images/imperialorb.jpg);
    background-repeat: no-repeat;
    background-position: top left;
    color: rgb(167,243,239);
}
span.artauthname {
  font-weight: bold;
}
span.artdatestr {
  font-style: italic;
}
span.artnavhd {
  font-weight: bold;
}
hr#artabove { display: none }
hr#artbelow { display: none }
h1#arthead:first-letter {
  font-size: 6ex;
  color: rgb(255,131,63) ;
}
div#artbody {
    border: rgb(255,131,63) solid thin;
    margin: 25px;
    padding: 15px;
}
div#artbody pre {
      font-family: "courier new" courier "lucida console" mono;
      display: block;
      overflow: auto;
}
-- 
David Dyer-Bennet, <mailto:dd-b at dd-b.net>, <http://www.dd-b.net/dd-b/>
RKBA: <http://www.dd-b.net/carry/>
Pics: <http://www.dd-b.net/dd-b/SnapshotAlbum/>
Dragaera/Steven Brust: <http://dragaera.info/>



More information about the Mailman-Users mailing list