On 22. Feb 2026, at 17:33, Stephen J. Turnbull <[email protected]> wrote: > > Stefan Bethke writes: > >> I have two list servers that I would like customize the web pages >> for, specifically I need to add some legal information to the >> footer, and I might want to apply some light branding to the >> site. I can't find any hints on how to do that, maybe I'm looking >> in the wrong place? > > Postorius is a Django application. There are copious docs on > djangoproject.com. We really don't want to duplicate the upstream > project's documentation, especially since our downstream (ie, OS > distros) are likely to have various different versions of Django > installed in their packages. > > The basic procedure is to add a local template path (I use > /etc/mailman3/templates) early in Django's template path in > /etc/mailman3/settings.py. Then copy any templates you want to modify > to the right place in that local template hierarchy and modify them > there.
Thank you, after a little bit more research, I did find the necessary information and managed to configure https://github.com/maxking/docker-mailman to pick up my template overrides. > If so, would there be interest in adding a feature to define some >> blocks that can be overridden more easily, > > Don't think this approach is better than overriding base.html if you > want sitewide legal and branding. It would be more appealing if it > were list-specific. It might be slightly more convenient, but you > still need to create the local template hierarchy. On the other hand, > it would increase the documentation burden. And for obvious reasons > we don't want to make it too easy to replace our own branding. I understand. Would you be open to some documentation about the general approach and a few pointers in the right direction? For people who are not familiar with Django this is not very obvious. And also, would you accept a change that enables replacing the icon in the nav bar and (extending/replacing) the footer, by defining a block each for these places with the current content as the default? My rationale is that I do not want to track changes to postorius/base.html manually, and this would allow me to override just those two blocks. Regards, Stefan -- Stefan Bethke <[email protected]> Fon +49 175 3288861 _______________________________________________ Mailman-users mailing list -- [email protected] To unsubscribe send an email to [email protected] https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/ Archived at: https://lists.mailman3.org/archives/list/[email protected]/message/C2Z6XOZMBNI7A3PF3RW7A4QESCPORRVH/ This message sent to [email protected]
