[Mailman-Users] Re: Templates
Richard Barrett
r.barrett at openinfo.co.uk
Wed Jul 2 13:02:12 CEST 2003
At 08:59 02/07/2003, Timothy Arnold wrote:
>Hi Richard,
>
>I have edited most of the template files in template/en (for our English
>mailing lists).
I hope you noted the words of the comment I quoted in my previous post "You
should never modify files in the templates/<language> subdirectory, since
Mailman will overwrite these when you upgrade. That's what the
templates/site language directories are for". Pity to lose all the good
work on the next upgrade.
>They all work fine. I have even edited the header.html & footer.html for
>ht://Dig (btw, is there any way to configure the mailman integration to
>change the mailinglist.conf file to point header & footer to the lists
>search directory instead of $COMMON?)
>
>The only pages left to edit are the listinfo page for the 'lists of
>lists', the subscriber options page, and the admin interface. I cannot
>figure out what template files these are generated by. I looked in
>listinfo.py and could not find any reference to html code at all!
>
>An example: http://lists.becta.org.uk/mailman/listinfo/mailman works fine,
>all nice and branded
That looks good
>but if you go to http://lists.becta.org.uk/mailman/listinfo, it is not
>branded. How do I make the lists of lists look like every other part of
>the site?
>
>Thanks for your help.
>
>Timothy
>-----Original Message-----
>From: Richard Barrett [mailto:r.barrett at openinfo.co.uk]
>Sent: 01 July 2003 19:01
>To: Timothy Arnold
>Cc: mailman-users at python.org
>Subject: RE: [Mailman-Users] Re: Templates
>
>
>At 18:27 01/07/2003, Timothy Arnold wrote:
> >That's what I thought... Anyone recommend a good python book? >:)
> >
> >I presume this is the same for the subscriber options? I am trying to
> >make
> >as much of the mailman interface that the end user (subscriber) sees
> Becta >branded as possible.
>
>If you are using MM 2.1.2 then you will find a much of the html has been
>abstracted to the $prefix/templates directory language subdirectories and
>their brethren.
>
>Although pages are being generated by MM scripts these now tend to
>populate template files rather than generate HTML from scratch.
>
>You can set up/change these templates by language as follows (from the
>comments in $prefix/Mailman/Utils.py):
>
><quote>
> # When looking for a template in a specific language, there are 4 places
> # that are searched, in this order:
> #
> # 1. the list-specific language directory
> # lists/<listname>/<language>
> #
> # 2. the domain-specific language directory
> # templates/<list.host_name>/<language>
> #
> # 3. the site-wide language directory
> # templates/site/<language>
> #
> # 4. the global default language directory
> # templates/<language>
> #
> # The first match found stops the search. In this way, you can
> specialize
> # templates at the desired level, or, if you use only the default
> # templates, you don't need to change anything. You should never modify
> # files in the templates/<language> subdirectory, since Mailman will
> # overwrite these when you upgrade. That's what the templates/site
> # language directories are for.
></quote>
<snip>
------------------------------------------------------------------------------
Richard Barrett http://www.openinfo.co.uk
More information about the Mailman-Users
mailing list