Still two problems:
I do not know how to force a cache invalidation on a template. So only way to change is to set a new name on the file and change the uri there. Unpractical. No, restarts do not work.
the $user_delivered_to and $user_email do not expand for some reason. Known problem?
Cheers // David
On Sat, Sep 23, 2017 at 3:52 PM, David Krantz <gazorg@gmail.com> wrote:
Hi.
Ok, checking the source helped. So I answer my own question:
mailman shell Welcome to the GNU Mailman shell
tm = getUtility(ITemplateManager) tm.set('list:member:regular:footer','mymaillist.example.com','file:///my_absolute_path/list:member:mymaillist.example.com:footer.txt') commit()
// David
On Sat, Sep 23, 2017 at 1:17 PM, David Krantz <gazorg@gmail.com> wrote:
Hi.
How do I set a template for one specific list? I want one list to have a special footer template.
I have tried updating the database (template table) without effect so apparently the database is not used for templates or some kind of fallback is used to set it to the generic footer. Of course I also tried to restart mailman after that operation to try to rule out any caching-related problem.
I want to use a file://-path as that is the least painful way of doing it. I also would like a solution to place a file in a special location. My current templates are in a
.../var/templates/site/en/
structure with names like list:member:generic:footer.txt
Cheers // David