![](https://secure.gravatar.com/avatar/6c5254669494efbc342b55a5db2fc222.jpg?s=120&d=mm&r=g)
Can anyone tell me if it is (or will in a future version) be possible to to totally customize the HTML that is output by Mailman... for example the output of http://www.yaddayadda.yadda/listinfo, etc? While there are a couple of minor changes I would prefer to make to the text itself, the major thing is that I would like to change the colors, font, etc. to match the rest of my site. I'd presume that because some of the HTML is already customizable, that the remainder will be made so in the future, but would just like to get an opinion/confirmation on that :-)
Thanks for any suggestions,
Mike <<<<<
![](https://secure.gravatar.com/avatar/0486cf9fb94e8cec8713e1aba06f587b.jpg?s=120&d=mm&r=g)
Mike Cisar wrote:
The listinfo page is totally customizable. There are two general ways: edit the template, and punt the template.
To edit the template, you can use the "Edit the HTML for the public list pages" option in your admin screen. Alternatively, you can directly edit the "listinfo.html" template in your $prefix/lists/$listname directory.
The other thing is to write up your own page and have the <FORM> in there post to the appropirate Mailman URL. A buddy of mine has subscription pages running on a completely different site. People fill in the form and it does a POST to the machine that runs Mailman.
Cheers, -g
-- Greg Stein, http://www.lyra.org/
![](https://secure.gravatar.com/avatar/d98c15b4ee0a56dbe9bab4e7e1e2ec4e.jpg?s=120&d=mm&r=g)
Greg Stein writes:
This is incorrect in my experience. Customizable for list subscriptions, but not the page that tells you what lists are available.
Additionally, various responses from subscribe and handle_opts use
print doc.Format(bgcolor="#ffffff")
even when they are using a template (in 1.0b8 anyway). Just grep for (bgcolor="#ffffff").
Actually the whole web page output/template interface in the cgi scripts looks pretty easy to play with so I might chase up the stragglers that need there own templates in my copious free time.
I've got some wrapper scripts that run on the web machine and use ssh to execute the actual cgi programs on the machine with mailman on it. They run pretty seamlessly, such that partylist@kaos.co.nz is accessible directly via http://kaos.org.nz/mailman/listinfo/partylist, and all the other virtuals can use the same CGI wrappers.
I might post them later this afternoon.
John.
![](https://secure.gravatar.com/avatar/0486cf9fb94e8cec8713e1aba06f587b.jpg?s=120&d=mm&r=g)
jwm@plain.co.nz wrote:
Of course it is incorrect... I thought you meant the individual list pages, not the summary page :-)
The list overview is NOT customizable without editing. You will need to edit $prefix/Mailman/Cgi/listinfo.py to make changes to that page.
There you go!
This seems overkill. Why don't you simply have the form post to that other machine? Why monkey with SSH setups and simulating a CGI on the target machine? That seems like a very non-intuitive approach.
This is something like the second or third time where I've heard people wanting to use SSH to communicate to the other machine. Just post the form over there.
-g
-- Greg Stein, http://www.lyra.org/
![](https://secure.gravatar.com/avatar/2c8c190d22516d815d1fce72874ee51c.jpg?s=120&d=mm&r=g)
Greg Stein wrote:
The only reason I can think of to do something like this is if you want to install Mailman on a machine where you don't have a web server (or there is a web server, but you want to keep Mailman and the existing Web server separate).
Still, I would rather just put up a web server on another port than have to connect from scripts on another machine with ssh or something. If you don't have permission from the owner to install a web server, you probably wouldn't be installing Mailman either :)
hmmm...
![](https://secure.gravatar.com/avatar/0486cf9fb94e8cec8713e1aba06f587b.jpg?s=120&d=mm&r=g)
Mike Cisar wrote:
The listinfo page is totally customizable. There are two general ways: edit the template, and punt the template.
To edit the template, you can use the "Edit the HTML for the public list pages" option in your admin screen. Alternatively, you can directly edit the "listinfo.html" template in your $prefix/lists/$listname directory.
The other thing is to write up your own page and have the <FORM> in there post to the appropirate Mailman URL. A buddy of mine has subscription pages running on a completely different site. People fill in the form and it does a POST to the machine that runs Mailman.
Cheers, -g
-- Greg Stein, http://www.lyra.org/
![](https://secure.gravatar.com/avatar/d98c15b4ee0a56dbe9bab4e7e1e2ec4e.jpg?s=120&d=mm&r=g)
Greg Stein writes:
This is incorrect in my experience. Customizable for list subscriptions, but not the page that tells you what lists are available.
Additionally, various responses from subscribe and handle_opts use
print doc.Format(bgcolor="#ffffff")
even when they are using a template (in 1.0b8 anyway). Just grep for (bgcolor="#ffffff").
Actually the whole web page output/template interface in the cgi scripts looks pretty easy to play with so I might chase up the stragglers that need there own templates in my copious free time.
I've got some wrapper scripts that run on the web machine and use ssh to execute the actual cgi programs on the machine with mailman on it. They run pretty seamlessly, such that partylist@kaos.co.nz is accessible directly via http://kaos.org.nz/mailman/listinfo/partylist, and all the other virtuals can use the same CGI wrappers.
I might post them later this afternoon.
John.
![](https://secure.gravatar.com/avatar/0486cf9fb94e8cec8713e1aba06f587b.jpg?s=120&d=mm&r=g)
jwm@plain.co.nz wrote:
Of course it is incorrect... I thought you meant the individual list pages, not the summary page :-)
The list overview is NOT customizable without editing. You will need to edit $prefix/Mailman/Cgi/listinfo.py to make changes to that page.
There you go!
This seems overkill. Why don't you simply have the form post to that other machine? Why monkey with SSH setups and simulating a CGI on the target machine? That seems like a very non-intuitive approach.
This is something like the second or third time where I've heard people wanting to use SSH to communicate to the other machine. Just post the form over there.
-g
-- Greg Stein, http://www.lyra.org/
![](https://secure.gravatar.com/avatar/2c8c190d22516d815d1fce72874ee51c.jpg?s=120&d=mm&r=g)
Greg Stein wrote:
The only reason I can think of to do something like this is if you want to install Mailman on a machine where you don't have a web server (or there is a web server, but you want to keep Mailman and the existing Web server separate).
Still, I would rather just put up a web server on another port than have to connect from scripts on another machine with ssh or something. If you don't have permission from the owner to install a web server, you probably wouldn't be installing Mailman either :)
hmmm...
participants (4)
-
Greg Connor
-
Greg Stein
-
jwm@plain.co.nz
-
Mike Cisar