7

As I learned from @Nicholai in a previous (unrelated) thread, you can override these templates with some pretty easy logic to add something custom to a single page. For example: {if $contributionPageID == 20} {* whatever you need to do on this page *} {/if} I assume this would work in this case, too. If you try it and it works, let us know!


6

Put your css inside {literal}{/literal} tags to prevent smarty from processing them.


5

If you want it in addition to the default/generic banner you can probably add it in at the top of the "Thank you and receipting" section of the event. If you want to use it in place of the generic banner, you may need to customize the template with some If/Then logic, checking the event ID in the smarty template somehow. Here's an example for a Contribution ...


4

Site had a configuration Who can register accounts? as administration only because of which I was not getting the screen where the user will be created before you fill PCP informations. After I changed the settings everything seems to be working fine. Configuration page link: example.org/admin/config/people/accounts


3

Jaap's comment is correct. It's unfortunately not possible to use a WYSIWYG editor on system templates because they're not (just) HTML, but contain Smarty code as well. Not only would Smarty break CKEditor, but CKEditor would break the Smarty code. This unfortunately makes editing system templates difficult to do. However, one trick that makes it easier ...


3

In the smarty template the variable $mem_status is assigned. So it can be used to insert different text fragments in the template. Here is an example in code. {if $mem_status eq 'New'} Hello, you seem to be new so this is the text fragment for new members. {else} Welcome back - not new - so here is an active member text fragment. {/if}


3

Use the hook civicrm_alterMailParams. Inspect the $params that are passed in, and if you don't want the message sent, set $params['abortMailSend'] to '1' (or any non-empty value). See lines 71-77 of CRM/Utils/Mail.php to see how this is processed by CiviCRM. This doesn't work for CiviMails but works for other emails sent by CiviCRM.


3

This was posted a while ago, but I thought I should post the solution I finally found to the problem (which still exists in my version 4.7.29 install) The solution to this problem was an API call. While the value of $participant_status_id shows the value PRIOR to update, with this Smarty code added somewhere near the top of the template: {crmAPI var='...


3

The state token is a token and not a smarty variable, so it has to just be on its own, and you can't use it in the middle of a smarty if statement. You have to capture it first into a smarty variable: {capture assign=stateProv}{contact.state_province}{/capture} {if $stateProv eq 'FL'} <p>A COPY OF THE OFFICIAL REGISTRATION AND FINANCIAL INFORMATION ...


2

A big Thank-You to Karen with Greenleaf Advancement for helping me out with this. There is a bug in Civi that does not allow the Table Cell separator to function. Karen helped we with some base code that works around the issue, I was able to tweek it from there to work for our situation. Paste the code in the Source of the letter. We use Line Items with all ...


2

So you need to find out if the campaign id is assigned to a variable available in the message template. I can't test right now, but if you enable debugging and add a {debug} if you template you should get a long and fugly table with all the variables available from the message. then it's the same process as for the contribution page: {if $campaignID == 1}...


2

{$contributionID} should work ....


2

I think you can use the event_type_id token inside the event templates. Something like - {if $event.event_type_id == <id of the event type>} text for the specific event type {else} common text for all other events {/if}


2

The email body content starts here for csv: https://github.com/civicrm/civicrm-core/blob/5.18.4/CRM/Report/Form.php#L3413, and a bit lower down for pdf. Note also the attachments are hardcoded in, a couple lines lower down. Note that in the report itself on the Title and Format tab you can add some text/html at the end of the header which will get included ...


2

I've tried using CiviRules, but Civirules is not respecting double opt -in. It sends e-mail even if user won't confirm subscription. Try adding a Linked Condition of Field Value Comparison: Entity: GroupContact Field: Group Contact Status Operator: Is equal to Compare Value: Added


2

You can turn off html encoding for CKeditor through UI Navigate to Administer >> Customize Data and Screens >> Display preferences Scroll down until you see Configure CkEditor button. Click on it to view all the settings. Under Advance options add entities option as False(as shown in image) and save the form. Note: You will need to clear your ...


1

We use the 'Title and Format' tab as Demerit mentions above and have stuck some text/html in the 'Report Header' box. To avoid attachments going out with them went with the below parameters for the scheduled job. instanceId=x format=print Not a global solution but may be suitable if results aren't too large.


1

I'd probably just make a separate cron script that emails them the links and whatever text you want, i.e. not using the scheduled report task just a plain cron script. If you want to send to a civi group or something like that then the cron script could be a cv script and then use the civi api inside the script.


1

It should work with Word Replacements, even for receipts. Under Administer - customize - Word Replacements. UPDATE: Under Administer - CiviMail - Message Templates, then on the System Workflow tab, there's two receipts for memberships. You can edit it in there. If it's hard to find the wording use CTRL-F and search for Membership Fee. Once in a while an ...


1

This is similar but slightly different from How to send email report FROM other than default email address? So a similar workaround would be to use hook_civicrm_alterMailParams.


1

You can't just copy it to the on-line message. You will need to start with the current on-line message and customise it in the same way that you did the off-line one. Those are awkward templates to work with but if you just make small changes you should be ok.


1

Ah - ok - this is what's happening: if the event is FREE -> then no receipt is issued via CiviCRM workflow message templates if the event is FREE && if participants make a donation -> then the participants get an email message from the CiviCRM workflow message template - contribution online So your workaround is a good one - a simple Email message ...


1

Just elaborate Aidan's answer: At Administration Console, Directories, at field: Custom Template Directory, fill in say: [civicrm.files]/custom_templates/ It refers to directory <DocRoot>/sites/default/files/civicrm/custom_templates Go there and make any necessary directory structure corresponding to your include statement. If it is {include file="...


1

You can find some information about overriding templates and the Custom Template Directory in the developer guide here... along with the recommendation that you don't do that but use extensions instead.


1

Mod_security. If you run into this issue, contact your host and have them look at their logs. For some reason, our live site wasn't throwing a mod_security error, but the dev site is. They're whitelisting the issue so that we shouldn't continue to have the problem.


1

I have just a suggestion for debugging: Enable debugging at civicrm/admin/setting/debug. Add the smarty token {debug output="html"} to the workflow message template. Now a dump of all the smarty variables and their values are shown in the email. Better to this on a test instance because you do not want your participants to see this. Examine the values of $...


1

A solution is to restrict access to the WordPress page that you are inserting the directory short code into. A plugin such as 'Members' allows you to restrict access to pages & posts by user role, customize the message visitors see when they do not have permission and provide a login widget.


1

If you can't do this through civi native, take a look at CiviCoop's CiviRules extension.


1

To my Knowledge this is not a straightforward thing - but can be done - You need to create an extension and use post or postprocess hook whenever an Event is been saved against database you need to trigger an action to send an email Install Civix Extension creation: https://wiki.civicrm.org/confluence/display/CRMDOC/Create+a+Module+Extension Hook ...


1

This patch (which is now part of core in 4.7) adds a linebreak option which makes it simple to create such tables https://github.com/civicrm/civicrm-core/pull/8804/files


Only top voted, non community-wiki answers of a minimum length are eligible