Re: [Koha] Template toolkit question.

2023-09-21 Thread Katrin Fischer
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

Re: [Koha] Template toolkit question.

2023-09-06 Thread Kyle Hall
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

Re: [Koha] Template toolkit question.

2023-09-06 Thread Katrin Fischer
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*

[Koha] Template toolkit question.

2023-09-05 Thread Raymund Delahunty
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