modify subscription page by mailinglist?
Hi
Is it (easy) possible to modify the subscription page individual per mailinglist?
If so, since which version? And how? Is there a guide?
Thank you.
MfG, Lars Schimmer
TU Graz, Institut für ComputerGraphik & WissensVisualisierung Tel: +43 316 873-5405 E-Mail: l.schimmer@cgv.tugraz.at Fax: +43 316 873-5402 PGP-Key-ID: 0x4A9B1723
Lars Schimmer writes:
Is it (easy) possible to modify the subscription page individual per mailinglist?
If so, since which version? And how? Is there a guide?
Not sure which page you have in mind, or how substantial the modifications you propose are. There are several subscription-related Django templates under postorius/src/postorius/templates/postorius, which could be customized to using various Mailman variables known to Postorius/Django. Not sure where they end up in your installation.
Steve
On 10/01/2022 14:14, Stephen J. Turnbull wrote:
Lars Schimmer writes:
Is it (easy) possible to modify the subscription page individual per mailinglist?
If so, since which version? And how? Is there a guide?
Not sure which page you have in mind, or how substantial the modifications you propose are. There are several subscription-related Django templates under postorius/src/postorius/templates/postorius, which could be customized to using various Mailman variables known to Postorius/Django. Not sure where they end up in your installation.
Ok, for debian thats /usr/lib/python3/dist-packages/postorius/templates/postorius
And I think I could fiddle out how it works. But in general, e.g. a custom page per mailinglist for the "list information page" is a bit more work than expected and I will not follow this idea. (e.g. adding a logo per list, ...)
Thank you so far.
MfG, Lars Schimmer
TU Graz, Institut für ComputerGraphik & WissensVisualisierung Tel: +43 316 873-5405 E-Mail: l.schimmer@cgv.tugraz.at Fax: +43 316 873-5402 PGP-Key-ID: 0x4A9B1723
Lars Schimmer writes:
And I think I could fiddle out how it works. But in general, e.g. a custom page per mailinglist for the "list information page" is a bit more work than expected and I will not follow this idea. (e.g. adding a logo per list, ...)
Just adding a list-specific logo is not hard. Choose a naming convention (probably something like f"logo-{list_id}.png"), put the logo PNG in one of the static directories and add
<IMG SRC="logo-{{list_id}}.png" ALT="Logo for {{list_id}} list." />
in the right place in each template (maybe even "base.html", but more likely an intermediate template specifically to allow putting such customizations in one place for list-specific pages). Adding the ability for a list admin to easily upload a file and set the logo to it would require surgery to Postorius's Python code, though.
I will admit that though I think this is a cool idea, I am not interested in doing it myself. But if your interest is at the "I'd rather wait a few months than do myself", GSoC is coming up again, and you could lobby for it when the students start applying. ;-)
Steve
On 1/10/22 5:32 AM, Lars Schimmer wrote:
And I think I could fiddle out how it works. But in general, e.g. a custom page per mailinglist for the "list information page" is a bit more work than expected and I will not follow this idea. (e.g. adding a logo per list, ...)
I don't know if this would meet your requirement or not, but the Summary
section of the list information page is built in part from list
settings. The first line is the list's description
and the next part
is the lists information
. The information
can contain HTML so you
could include a logo there.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (3)
-
Lars Schimmer
-
Mark Sapiro
-
Stephen J. Turnbull