On Wed, Mar 3, 2021, at 9:59 AM, Andreas Barth wrote:
Hi together,
I want to adjust the settings menu to reduce to the options really needed.
The easiest way would be to edit src/postorius/views/list* but I don't think that's a good idea.
There is an easier way actually, you can update the forms1 that generate those views to remove the fields you don't want to be presented.
For example, see this form for creating a new list 2. The layout defines the fields that show up and also the order that they show up in.
So, you can add those layout to all the list settings form, each one controlled with a setting and choose the fields and their order.
You won't be able to move the fields around in different groups though.
So what comes to my mind is to have some variable in the configuration that contains the menu items and - if set - the submenus.
E.g. the following: { 'list_identity': ['!gateway_to_mail', '!gateway_to_news', '!linked_newsgroup', '!newsgroup_moderation', '!nntp_prefix_subject_too' ], 'automatic_responses', 'alter_messages', 'dmarc_mitigations', 'digest', 'message_acceptance', 'archiving', 'subscription_policy', 'bounce_processing' }
would express: default menu and just remove the mentioned items.
Of course, something like ['advertised', 'description', 'info', 'display_name', 'subject_prefix'] would work as well.
Resorting should also be possible, so something like { 'list_identity': ['advertised', 'description', 'info', 'personalize'] } would give a very small list of items to select from.
What do you think about the idea?
Andi
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- thanks, Abhilash Raj (maxking)