Thanks! it works now

Pedro Rodriguez Gomez

-----Original Message-----
From: Richard Barrett [mailto:[EMAIL PROTECTED]
Sent: 12 February 2004 16:32
To: Rodriguez Gomez Pedro
Cc: [EMAIL PROTECTED]
Subject: Re: [Mailman-Users] Changing the default archive pages


On 12 Feb 2004, at 16:06, Rodriguez Gomez Pedro wrote:

> Sorry, I forgot to say that I also tried to put the files in  
> "$prefix/archives/private/test" and it didn't work either.
>
> Pedro Rodriguez Gomez
>
> -----Original Message-----
> From: Rodriguez Gomez Pedro
> Sent: 12 February 2004 16:02
> To: '[EMAIL PROTECTED]'
> Subject: Changing the default archive pages
>
>
> Hi,
>
> I am working with Mailman 2.1.3 and my problem is changing the "look  
> and feel" of the Archive pages of every list in my system.
>
> I know that there is a folder with default templates  
> "$prefix/template/<language>/", and inside this folder the files  
> "article.html", "archidxfoot.html", "archidxhead.html" , ... that  
> contain the default "look and feel" of the archive pages. But if I  
> copy (and then change) these files into  
> "$prefix/lists/test/<language>", being "test" a new list with no  
> messages so far, and then I send a first message to the list, nothing  
> happens, I mean nothing but the archives are generated as always. If I  
> do the same proccess, but changing the files directly in  
> "$prefix/template/<language>/" the result is the same.
>
> Am I doing something wrong?
>

For performance reasons the templates are cached by the various  
qrunners while they are running. As a consquence you need to use  
mailmanctl restart after changing templates so that the qrunners will  
pick up the new versions from disk and incorporate them in to into  
their caches.

The following information quoted from $prefix/Mailman/Uils.py may be of  
use to you:

<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.
     #
     # A further complication is that the language to search for is  
determined
     # by both the `lang' and `mlist' arguments.  The search order there  
is
     # that if lang is given, then the 4 locations above are searched,
     # substituting lang for <language>.  If no match is found, and  
mlist is
     # given, then the 4 locations are searched using the list's  
preferred
     # language.  After that, the server default language is used for
     # <language>.  If that still doesn't yield a template, then the  
standard
     # distribution's English language template is used as an ultimate
     # fallback.  If that's missing you've got big problems. ;)
     #
</quote>

Note that you should not make changes to templates in the  
$prefix/Mailman/templates directory  as those changes will be lost when  
you next upgrade Mailman; put your changed templates under  
$prefix/templates/site/ if, for instance, you want them to apply to all  
lists on your server in place of the defaults.


> Thanks,
>
> Pedro Rodriguez Gomez
>
> _______________________________________________________________________ 
> _
> This e-mail has been scanned for all viruses by EMEA.
> _______________________________________________________________________ 
> _
-----------------------------------------------------------------------
Richard Barrett                               http://www.openinfo.co.uk


________________________________________________________________________
This e-mail has been scanned for all viruses by EMEA.
________________________________________________________________________

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