template head/footer questions.
I migrated from mailman 2 to mailman3 and had head/footer questions.
In the mailman 3 GUI see the templates section, so where do those files get edited/stored?
I added a footer to a list via the GUI, but I do not see it in: /var/templates/lists/[listNAME]/en
I see some directories corresponding to list names in /var/templates/lists/ But I do not have a directory for all my lists and for the footer one I just added.
Bottom line,
I assume I should not edit or create any files in /var/templates/lists/ and just use the GUI? is this directory leftover from migrating from mailman 2 to 3? I have a list admin who has made some head and footer files and wants me to put them in /var/templates/lists/[listNAME]/en/.... but I think that may not be the best option.
On 4/8/22 11:04, bob B via Mailman-users wrote:
I migrated from mailman 2 to mailman3 and had head/footer questions.
In the mailman 3 GUI see the templates section, so where do those files get edited/stored?
in the postorius_emailtemplate table in the database.
I added a footer to a list via the GUI, but I do not see it in: /var/templates/lists/[listNAME]/en
Because when you set a template in Postorius it makes an entry in the template table in the database with a URI pointing to its own API to retrieve the template.
I see some directories corresponding to list names in /var/templates/lists/ But I do not have a directory for all my lists and for the footer one I just added.
Bottom line,
I assume I should not edit or create any files in /var/templates/lists/ and just use the GUI?
That's up to you. The default search path for templates in the absence of a template table entry (or even with one with a mailman:/// URI) includes the var/templates/lists/list_id directory.
is this directory leftover from migrating from mailman 2 to 3?
No
I have a list admin who has made some head and footer files and wants me to put them in /var/templates/lists/[listNAME]/en/.... but I think that may not be the best option.
Again, it's up to you. If you have Postorius and want list admins to be able to create, modify, break, etc. templates without involving you, then Postorius is a good option, but it isn't in all cases.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
bob B
-
Mark Sapiro