[Mailman-Users] Modifying Listinfo page for one list

Todd Freedom_Lover at pobox.com
Sat Jan 10 22:13:29 CET 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ed Greenberg wrote:
> One of my listowners raises a valid question. She has a list that is
> used for publishing a newsletter. No posting is allowed by anybody
> but the owner.
>
> When one visits the listinfo page, one sees the usual  to post a
> message to all members send an email to.... " info.
>
> I'd like to create a separate templates/en/listinfo.html for her
> list.
>
> Is there a good way to do this, other than redefining one of the
> languages (or adding a new language)?

The list owner can do this on her own.  That's what the "Edit the
public HTML pages" link does in the list admin section.

If you want to do this for the list owner, you can copy listinfo.html
from templates/<lang>/ to lists/<listname>/<lang>/ and edit it to
remove the info about how to post to the list.

The order mailman searches for templates is described in
Mailman/Utils.py:

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

- -- 
Todd        OpenPGP -> KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp
======================================================================
Sex is the only sport that is not called on account of darkness!
    -- Anonymous

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: When crypto is outlawed bayl bhgynjf jvyy unir cevinpl.

iD8DBQFAAGr4uv+09NZUB1oRAiwQAJ0e2ON/jaMBig/py381g8fPK3Z5IgCgzV6h
Rbc2RZSTQNHG9h9VXuHBewg=
=UzYR
-----END PGP SIGNATURE-----




More information about the Mailman-Users mailing list