Email template customization

90 views
Skip to first unread message

phasma

unread,
Dec 14, 2010, 10:17:27 AM12/14/10
to Trac Users
Hi.

I've got 0.12.1 trac version. In trac.ini i've added:

[inherit]
templates_dir=/home/trac/xxx/templates/

and created ticket_notify_email.txt with custom template, but email
messages doesn't changed.

How can I change email template only for one copy of trac?

hjw

unread,
Dec 14, 2010, 4:21:28 PM12/14/10
to Trac Users
I too need to do this. In the previous version I inserted my custom
ticket notify file into the the source tree itself. But I installed v
0.12 with easy_install and that's installed it as an egg (compressed).

I'm not sure if I can just uncompress the egg in place and have things
still work.

In the previous version it wasn't possible to use the templates dir
for the email notify file.

-Hawley

osimons

unread,
Dec 15, 2010, 5:10:30 AM12/15/10
to Trac Users
Put the template in the project 'templates' directory. The common
search order for templates is env/templates, shared/templates, /
various/trac/and/plugin/eggs/templates

Trac.ini setting is only used to define location of a shared location.


:::simon

https://www.coderesort.com
http://trac-hacks.org/wiki/osimons

phasma

unread,
Dec 15, 2010, 9:05:48 AM12/15/10
to Trac Users
Thanks. I copied ticket_notify_email.txt from egg, put it to template
path and then restart trac.
Reply all
Reply to author
Forward
0 new messages