Hi all,
I've added this hint to the wiki:
https://wiki.koha-community.org/wiki/Notices_with_Template_Toolkit#Don.27t_generate_e-mail_for_a_patron_category
Katrin
On 06.09.23 12:47, Kyle Hall wrote:
There is a trick which basically boils down to "If the rendered notice is
empty, it doesn't
There is a trick which basically boils down to "If the rendered notice is
empty, it doesn't get sent". So your WELCOME notice could contain something
like:
[%- IF patron.categorycode == "STAFF" %]
This is where your actual welcome notice is!
[%- END %]
That way it is empty for non-staff
Hi Ray,
you can affect the content of an email with Template Toolkit, but I
don't see a way where it could be used to prevent generation/sending of
the email in the first place.
Christopher Brannon filed a bug to make this configurable:
*BugĀ 15834*
We are having some successes in using TT code to improve notices. Dealing with
singular / plural issues, different wording of notices for different patron
categories... that sort of thing. What we would like to do is to use TT to send
the WELCOME notice to staff only. Has any TT expert any tips
4 matches
Mail list logo