12 votes
Accepted

Where are the "ConfigAndLog" and "templates_c" directories?

The two directories are found side-by-side. The location varies by CMS; see below. Note that you'll need access to your server's file system. If you have FTP/SFTP/SSH access, you can use that. If ...
user avatar
7 votes

How can I see the available tokens for message templates?

Insert {debug} into a message template then perform the relevant action (ie make an online contribution if you modified Contributions - Receipt (on-line)). The email sent will contain a list of all ...
user avatar
  • 3,440
6 votes
Accepted

How can I include a custom template file in an email template using smarty?

I dont think CiviCRM does this by default However, I do think this is a good idea and makes sense to include it in core for non-civimail mailings (which already have a header/footer) Might want to ...
user avatar
  • 3,803
6 votes
Accepted

How to keep "My billing address is same as above" UNTicked by default?

Further down (halfway) to the Billingblock.tpl change the following value from true to false // detect if billing checkbox should default to checked var checked = false;
user avatar
  • 2,846
5 votes
Accepted

How to tell which .extra.tpl files CiviCRM is trying (and failing) to load?

This code might help shed some light: $template = CRM_Core_Smarty::singleton(); print_r($template->template_dir);
user avatar
  • 2,345
5 votes
Accepted

How to force styles in CiviMail templates?

You can force inline CSS with this extension.
user avatar
4 votes

How can I see the available tokens for message templates?

You can insert the {debug} Smarty token into your template: http://forum.civicrm.org/index.php/topic,14845.msg63471.html#msg63471
user avatar
4 votes
Accepted

How can I see the available tokens for message templates?

use {debug output=html} To have a nice formatting in html email
user avatar
  • 128
4 votes

Can I add non-contact fields (such as membership, contribution, relationship, etc) in bulk emails?

The short answer is "not without extensions". It would be difficult, for instance, to say exactly which of a contact's many contributions you want to pull data from. That said, other users have ...
user avatar
4 votes
Accepted

How to automatically set PDF 'Activity Subject' from template subject?

Tracked this one down. It worked out of the box in 4.4.x, but doesn't in 4.5.x. Not sure whether it was deliberate, but it's pretty easy to 'fix'. Edit templates/CRM/Mailing/Form/InsertTokens.tpl and ...
user avatar
  • 1,960
4 votes

How to tell which .extra.tpl files CiviCRM is trying (and failing) to load?

I think the real answer to this situation is: "don't use tpl.extra files in an extension". The reason is that there can be only one of them, and potentially many extensions. That little trick is ...
user avatar
  • 16.2k
4 votes

How to copy an existing letter template?

If you use that template when either sending an individual Mail or a CiviMailing you should have an option at the bottom to save as new template.
user avatar
  • 27.1k
4 votes

Different forms depending on user roles

You say you want to change 'Edit Contact' - but if you mean, you want a way for a logged in user to be able to be directed 'somewhere' to update their details, then here is one non-coding solution ...
user avatar
  • 27.1k
4 votes

Where are the "ConfigAndLog" and "templates_c" directories?

Another option for seeing the civi logs is adding the extension CiviCRM Log Viewer which gives a link via the Admin menu to view the error log
user avatar
  • 27.1k
4 votes

Where to find the path and the name of the tpl file in source code in 4.7.16

In current 4.7 you need to enable debugging for the tpl to be shown in the source. Go to Administer > System Settings > Debugging and Error Handling then select Enable Debugging and save. ...
user avatar
  • 11k
4 votes
Accepted

No contact names in activity emails but only name_{contact_id}. Why?

The comment by Demerit solved my problem: Check under Administer - CiviCase - CiviCase Settings, there's an option that says "Redact Activity Email". That was set to "Redact Emails" and I had to set ...
user avatar
  • 113
4 votes

Listing Groups in a mail template

As far as I know, that token doesn't exist, in core or in an extension. It's not a bad idea though; it would be quick to write. As with most tokens that list multiple fields, the real trick is in ...
user avatar
4 votes

Listing Groups in a mail template

As said by Jon its not available in core or in an extension. You can either write extension and implement hook_civicrm_tokens and hook_civicrm_tokenValues to add and generate token for the contact ...
user avatar
4 votes
Accepted

Add new column to table in field 'selector.tpl'?

You can create a profile with the fields you want to display as a column and set the 'Default Contact Search Profile' in Search Preferences (CiviCRM >> Administer >> Customize Data and ...
user avatar
4 votes

Putting Contact Tags in Email Template

Welcome to CiviCRM SE. I have contact group token extension which provides a list of group users added to, but not for tags.
user avatar
3 votes

How to get php $_SESSION variable inside a template

Try following: // php code; $_SESSION['test'] = 'Hello World'; // assign 'Hello World' to .tpl $this->assign('test', $_SESSION['test']); // use '{$test}' following in ...
user avatar
  • 483
3 votes
Accepted

Using <div> tag for pdf printing

I figured it out on my own. To print <div> on different pages, it needs to be positioned relative. So, I ended up putting all the existing <div> with position absolute into a <div> ...
user avatar
  • 2,231
3 votes
Accepted

Removing empty fields from event registration templates

It sounds like you want to edit your Smarty templates for your receipts and use the Smarty "capture" function: From http://www.smarty.net/docs/en/language.function.capture.tpl: "{capture} is used to ...
user avatar
3 votes

Removing empty fields from event registration templates

If you want to remove them when they are empty you will have to create a customization using the CiviCRM hooks. If you want to remove them from the email and do not really care about the data in them, ...
user avatar
3 votes
Accepted

Template file not loading

I'd say best to stick with where Civix (aka Tim) says it should go! (i.e. no subdirs) - and note that Civix can help you create the page: https://wiki.civicrm.org/confluence/display/CRMDOC/Create+a+...
user avatar
3 votes

How can I remove the Billing Name and Address section from the donation form?

How are you collecting the payment? As far as I understand it, those fields are required by certain merchant account services. For instance, on our page if we do pay later or Paypal, those fields do ...
user avatar
3 votes

How can I remove the Billing Name and Address section from the donation form?

[UPDATE FOR 2021!] - Different payment processors require different amounts of data. The older processors, like Authorize.net, required more. Newer processors require less. Traditionally CiviCRM had ...
user avatar
3 votes
Accepted

Can't create new events from template after upgrade to 5.9

Looks like this is indeed a bug: https://lab.civicrm.org/dev/core/issues/653
user avatar
  • 272
3 votes
Accepted

How to force a field to be mandatory?

Welcome to SE, You can set contact type mandatory by using hook_civicrm_buildForm something like below function extension_civicrm_buildForm($formName, &$form) { if ('CRM_Contact_Form_Contact' ==...
user avatar
3 votes

How do I removed accordions in the advanced search

Unchecking the box in the image below for each field in your custom data set ensures it is not searchable. If no fields within the custom data set are searchable, the "accordion" is removed from the ...
user avatar

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