I'm wondering if it's possible to add some conditional logic in my custom user-driven message template to show some content (in this case, a footer) for messages that are sent as emails, but not to show the content if the message is generated as a PDF.

My use case is for generating thank-you letters for contributions. If I select "generate emails where possible/generate PDFs for contacts who cannot receive email," I want the emails to contain a footer, but I don't want the PDFs to contain the footer, since the footer is already part of stationery that we have.

Is this possible in some way with CiviCRM, or do the email and PDF templates currently have to be identical?

  • Can you please clarify that you're referring to System Workflow message templates? There are multiple templating systems in CiviCRM. – Jon G - Megaphone Tech Oct 12 '19 at 20:02
  • @JonG-MegaphoneTech - sorry; I am referring to a custom message template I created under "User-driven Messages." – Nick Tiberi Oct 12 '19 at 20:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.