Hi all,
I have a question regarding the editing of public HTML pages and text files within a Mailman list.
I'm using Mailman 2.1.14 which is hosted with cPanel. On this particular setup, when I log into the GUI (as list owner) with the list's admin password and go to "Edit the public HTML pages and text files", I only have the following four template files listed there for me to edit:
- General list information page
- Subscribe results page
- User specific options page
- Welcome email text file
However, in the past I've seen other implementations of Mailman hosted elsewhere (not using cPanel), which have a number of other template files available for editing in the same place - in particular the various email templates used by the system can be edited there. For example I've seen the following files available for editing via the "Edit the public HTML pages and text files" location, on other implimentations of Mailman:
- approve.txt
- cronpass.txt
- disabled.txt
- help.txt
- invite.txt
- postheld.txt
- unsub.txt
- userpass.txt
- verify.txt
- masthead.txt
So this tells me that it's somehow possible to have those additional files available for editing, and for some reason they are hidden or unavailable with the cPanel Mailman setup that I'm currently using.
What I'd love to figure out is how (if possible) to enable those extra files so they can be visible and editable. Is there some master switch or setting in one of the Mailman site files which controls this? Or a per-list setting?
As you may have gathered, I'm not the site owner, just a list owner within this particular site. But if I can learn how the above is changed, I can let the site owner know and ask him to make the change. I have no idea what factor cPanel plays in this, but hopefully that's not a limitation.
Can anyone offer some pointers?
Thanks, Jeremy
Jezz wrote:
I'm using Mailman 2.1.14 which is hosted with cPanel. On this particular setup, when I log into the GUI (as list owner) with the list's admin password and go to "Edit the public HTML pages and text files", I only have the following four template files listed there for me to edit:
- General list information page
- Subscribe results page
- User specific options page
- Welcome email text file
However, in the past I've seen other implementations of Mailman hosted elsewhere (not using cPanel), which have a number of other template files available for editing in the same place - in particular the various email templates used by the system can be edited there.
[...]
What I'd love to figure out is how (if possible) to enable those extra files so they can be visible and editable. Is there some master switch or setting in one of the Mailman site files which controls this? Or a per-list setting?
The list is defined in the module Mailman/Cgi/edithtml.py by the statement
template_data = (
('listinfo.html', _('General list information page')),
('subscribe.html', _('Subscribe results page')),
('options.html', _('User specific options page')),
('subscribeack.txt', _('Welcome email text file')),
('masthead.txt', _('Digest masthead')),
)
You can add any list specific templates you want to this list (actually, a Python tuple of tuples, not a Python list), just as
('masthead.txt', _('Digest masthead')),
was added for Mailman 2.1.15. Note that you can actually add any template to this list, but edited templates such as cronpass.txt which are not used in a list context will not be used.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
"Mark Sapiro" <mark@msapiro.net> wrote in message news:PC19520120215161509029698e012b1@MSAPIRO...
Jezz wrote:
I'm using Mailman 2.1.14 which is hosted with cPanel. On this particular setup, when I log into the GUI (as list owner) with the list's admin password and go to "Edit the public HTML pages and text files", I only have the following four template files listed there for me to edit:
- General list information page
- Subscribe results page
- User specific options page
- Welcome email text file
However, in the past I've seen other implementations of Mailman hosted elsewhere (not using cPanel), which have a number of other template files available for editing in the same place - in particular the various email templates used by the system can be edited there.
[...]
What I'd love to figure out is how (if possible) to enable those extra files so they can be visible and editable. Is there some master switch or setting in one of the Mailman site files which controls this? Or a per-list setting?
The list is defined in the module Mailman/Cgi/edithtml.py by the statement
template_data = ( ('listinfo.html', _('General list information page')), ('subscribe.html', _('Subscribe results page')), ('options.html', _('User specific options page')), ('subscribeack.txt', _('Welcome email text file')), ('masthead.txt', _('Digest masthead')), )
You can add any list specific templates you want to this list (actually, a Python tuple of tuples, not a Python list), just as
('masthead.txt', _('Digest masthead')),was added for Mailman 2.1.15. Note that you can actually add any template to this list, but edited templates such as cronpass.txt which are not used in a list context will not be used.
--
Awesome, thanks!
I'm not quite sure what you mean about cronpass.txt. Isn't that used for the monthly password reminder? What do you mean about it not being used?
BTW could you kindly give me a complete list of the possible templates (or at least the default or standard templates) and their "friendly" names, from the edithtml.py file, as you did above with those first five entries? That would be very helpful. :)
Cheers, Jeremy
Jezz wrote:
I'm not quite sure what you mean about cronpass.txt. Isn't that used for the monthly password reminder? What do you mean about it not being used?
The monthly password reminder is a single reminder for all lists in the installation of which the recipient is a member. Thus it is not "for" a single list, even if it only contains one password for one list. Thus, it always uses either the default cronpass.txt template or a sitewide edited cronpass.txt template if any. It does not use a domain specific or list specific version of the template even if there is one.
BTW could you kindly give me a complete list of the possible templates (or at least the default or standard templates) and their "friendly" names, from the edithtml.py file, as you did above with those first five entries? That would be very helpful. :)
All the templates are listed at <http://bazaar.launchpad.net/~mailman-coders/mailman/2.1/files/head:/template...>. Their "friendly" names for edithtml.py are any name you want to make up to describe them.
I think the only ones which are used without a list context and for which editing via edithtml.py is ineffective are cronpass.txt and nomoretoday.txt.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Jezz -
Mark Sapiro