[rt-users] Can Templates be Conditionalized Based on Recipient Address?

Jerrad Pierce jpierce at cambridgeenergyalliance.org
Thu Aug 6 19:34:50 EDT 2009


> That looks interesting, though I'm not immediately sure how it solves my
> problem.  I need to customise the template based on the recipient rather
> than on the value of a custom field.
It's just a test, you can use whatever you want as the condition.

> Once I'd figured out who the recipient was, I was planning on customising
> the template text using a simple "if () {...} statement (though admittedly,
> ForkTemplate may well be a nicer way of doing that).  But as described in my
> original post, I tried two ways of finding out who the recipients of a
> transaction were and couldn't get either to work.
Because it's a PITA due to one-time CC's and the like.
Take a look at share/html/Ticket/Elements/PreviewScrips to get an idea
of how it can be done.



More information about the rt-users mailing list