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:[EMAIL PROTECTED]
Sent: 01 July 2003 19:01
To: Timothy Arnold
Cc: [EMAIL PROTECTED]
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


------------------------------------------------------ Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

This message was sent to: [EMAIL PROTECTED]
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to