Hi Richard,

I have edited most of the template files in template/en (for our English mailing 
lists). 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 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>

Take a look at these template files and evaluate the template search 
hierarchy before concluding that hacking the Python code is the only way 
forward.

>Thanks,
>Timothy
>
>-----Original Message-----
>From: Paul H Byerly [mailto:[EMAIL PROTECTED]
>Sent: 01 July 2003 16:56
>To: [EMAIL PROTECTED]
>Subject: [Mailman-Users] Re: Templates
>
>
>       That is what I get for answering a question when I should not 
>yet
> be awake.  I belive that page is generated by a cgi script
>(mailman/cgi-bin/listinfo), which is going to make editing a real problem.
>
>At 09:37 AM 7/1/2003, you wrote:
> >That edits the listinfo for the list, not the list of lists...
> >
> >Thanks,
> >Timothy.
> >
> >-----Original Message-----
> >From: Paul H Byerly [mailto:[EMAIL PROTECTED]
> >Sent: 01 July 2003 15:07
> >To: [EMAIL PROTECTED]
> >Subject: [Mailman-Users] Re: Templates
> >
> >
> >"Timothy Arnold" wrote:
> > >The problem I am having at the moment is trying to figure out how 
> > >to edit the main listinfo page 
> > >mailman.becta.org.uk/mailman/listinfo and the
> > end >user subscription page. We would like to make the site as 
> > branded as
> > >possible (except for admin interface). Does anyone know how to 
> > >achieve this?
> >
> >       From the admin page click "Edit public HTML pages on the right 
> > side a little above the Logout link.
> >
> >
> ><>< Paul
>
><>< Paul
>
>
>------------------------------------------------------
>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/timothy.arnold%40becta.org.uk
>
>
>**********************************************************************
>This email and any files transmitted with it are confidential and 
>intended solely for the use of the individual or entity to whom they 
>are addressed. If you have received this email in error please notify 
>the system manager. This footnote also confirms that this email message 
>has been swept by MIMEsweeper for the presence of computer viruses.
>www.mimesweeper.com
>**********************************************************************
>
>
>------------------------------------------------------
>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/r.barrett%40openin
>fo.co.uk

------------------------------------------------------------------------------
Richard Barrett                                      http://www.openinfo.co.uk



**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************


------------------------------------------------------
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