jamie--- via Mailman-users writes:

 > I've installed the mailman3, mailman3-full, mailman3-web, and
 > python3-django-mailman3 packages on Debian trixie. Everything is
 > working - thank you developers!

You're welcome.

 > However, I would like to modify how the web pages look (both
 > postorius and hyperkitty). I noticed that the web interface on this
 > server (lists.mailman3.org) looks much nicer than the one showing
 > on my server. For one, on my installed instance, the left and right
 > margins are not set, so content is flush with the edge of the
 > screen.

Most likely there's a problem accessing the CSS files for Postorius
and/or HyperKitty.

 > What is the easiest/most maintainable way to add my own css code
 > and/or files to adjust how the web interface is displayed? Is that
 > possible?

It is possible (I've done it for some simple changes), but this is a
Django question.  You probably want to ask on the Django lists if you
want to do something more extensive than change some of the text in
the pages.

The easiest way in my experience is to find which of the directories
on the path to the CSS mailman-web needs doesn't have at least search
(o=x) set for both the 'mailman' user and the webserver user
(typically 'www-data' on Debian family OSes), and fix that.  Look in
the error logs for both mailman-web and the webserver for "couldn't
access something.css".  That's partly a joke, I would think Debian
would get this right.  But I've run into that twice on systems for
security-paranoid clients.  Check it, you don't want to write it from
scratch since you do like the default style pretty well.

If you get the default styles running, and nevertheless want to do
more, Django has search paths for such files that you can add to in
'settings.py'.  I recommend adding "/etc/mailman3/whatever" fvo
whatever = templates, styles, etc. and putting your substitute files
there.  Debian won't touch those (except may if you purge the
configs?)

Of course you'll have to deal with any changes in parent templates,
but this is much more maintainable than changing the distribution
templates and styles.

Steve


-- 
GNU Mailman consultant (installation, migration, customization)
Sirius Open Source    https://www.siriusopensource.com/
Software systems consulting in Europe, North America, and Japan
_______________________________________________
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/7S2HMTFA6RXT526WGKQR2JZJFVCOP2KN/

This message sent to [email protected]

Reply via email to