Questions tagged [templates]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
9
votes
2answers
2k views

Where are the “ConfigAndLog” and “templates_c” directories?

Many Stack Exchange answers say to "check your CiviCRM logs" which can be found in the "ConfigAndLog" directory, or to "delete your templates_c folder". What are the default locations for the ...
9
votes
4answers
626 views

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

Details We would like to create a standard header and footer for our email templates. Rather than pasting the custom HTML in the top of each system email template we want to override, it would be ...
7
votes
3answers
725 views

How can I see the available tokens for message templates?

For a page in the browser, we can put &smartyDebug=1 in the URL to see variables in scope for the top level template. How can we do this for message templates?
5
votes
2answers
46 views

Listing Groups in a mail template

I'm creating an email template to be used to confirm a contact's membership status, and I would like to include a list of the Groups (representing Committees in our case) that the contact belongs to. ...
5
votes
1answer
150 views

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

"My billing address is same as above" field by default is checked. I would like to keep it "UNTicked" by default. How can I do it? I have tried to modify the template file in civicrm/templates/CRM/...
5
votes
2answers
82 views

How to copy an existing letter template?

I have created a custom letter template in CiviCRM, with letterhead, footers, graphics etc. It is saved under an assigned name. Now I want to use that template to create others for specific ...
4
votes
1answer
175 views

How to force styles in CiviMail templates?

When a basic user uses a template to write an email, is there any way to force the styles in the message? For example, the most common case is when the user creates links in the message body and these ...
4
votes
2answers
45 views

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

Is it possible to automatically set the 'Activity Subject' of PDF letters to the 'Message Subject' of the selected template? I swear I've seen this done with a quick bit of code, but the keywords are ...
4
votes
2answers
93 views

What is the preferred way to do Marketing Automation in CiviCRM? CiviMail, Mosaico, Mautic, Forms, Landing Pages etc [closed]

This is more of a discussion point rather than a question, and I'm interested to get peoples views on topic. It's brief as I don't want to make it unreadable and please excuse the rushed ramblings and ...
4
votes
2answers
136 views

Invalid document file format - error

I can no longer upload docx or odt files to use as templates. Not sure when it happened but I'm running 5.6.0. I had uploaded files previously and even when downloading that same file and trying to ...
3
votes
3answers
311 views

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

I would like to remove the Billing Name and Address section (which includes the fields First Name, Last Name, Street, City, Country, State, ZIP) from the donation page. What would be a good way to go ...
3
votes
2answers
102 views

Removing empty fields from event registration templates

We have some custom event fields that were set up before our time and are set to apply to all types of events, even though they are rarely used anymore. However, when a registration is entered from ...
3
votes
1answer
72 views

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

I'm using CiviCRM 4.7.16 with Drupal 7. In the previous versions, the invoice tpl file can be found by viewing the page source html in the browser. It's in a comment line and it is something like &...
3
votes
3answers
317 views

How can I modify the existing report template?

we use the [source] and [external ID] heavily. They are standard civi fields however they do not appear on the report template (detail or summary versions). Pointers on where to go to update the ...
3
votes
1answer
35 views

What data fields are available to me at receipt template

My CiviCRM 5.16. When I try to add fields to receipt template, I discovered that I could add {$line.contribution_id} which shows the record ID of the contribution. But adding {$line.creditnote_id} (...
3
votes
2answers
94 views

Is there any simple way to replicate sections in CiviMail message templates?

Is there any simple way to replicate sections of email templates (for example, a section corresponding to one story) without having to copy and paste and guard to catch all the tables and other ...
3
votes
2answers
195 views

Can't create a new event template from an existing event template

in Civi 4.5.4 I'm trying to create a new event template from an existing template. When I do that, I start at this screen: /civicrm/event/add?action=add&is_template=1&reset=1 When I select an ...
3
votes
1answer
45 views

How can I hide non-mailing list groups in receipts?

At the moment, when someone signs up for a membership or makes a contribution, the receipt returns a list of their newsletter subscription groups AND non-mailing lists group assignments. How can I ...
2
votes
3answers
50 views

Different forms depending on user roles

I want to customize the "Edit Contact" form depending on roles. What's the best way to do it? create different templates. It's possible to distinguish inside a .tpl the user role? create a Drupal ...
2
votes
2answers
89 views

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

I want to add fields from other modules, such as membership,contributions, relationships etc in bulk emails? I don't know php so I hope I can put the field name inside {}. Is this possible? If so, ...
2
votes
2answers
68 views

Event Template Start Date

I created an event template years ago, and when I use this template to create a new event, it auto populates the start date with a very old date. If I edit this event template, the start and end dates ...
2
votes
1answer
36 views

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

The emails that are sent by civicrm 5.5.3 (but had same problem with 5.4.1) to a an assigne of a case activity don't have the names of the client, assigne, etc but only a signpost made up of name_{...
2
votes
2answers
81 views

Template file not loading

I added a new page in this hierarchy: CRM/Mymodule/Page/subdir/MyPage.php and added a template file at templates/CRM/Mymodule/subdir/MyPage.tpl. But when I run MyPage.php, I get a blank page. ...
2
votes
1answer
808 views

How to get php $_SESSION variable inside a template

I am setting $_SESSION variable inside a payment response file and need this to display on Thank you page. Somehow nothing seems to work so far. Tried following things: $_SESSION['test'] = 'Hello ...
2
votes
1answer
574 views

Using <div> tag for pdf printing

I have made a html-template in CiviCRM consisting only of this kind of html tag: <div style="position: absolute;"> This works perfect for selecting a template for pdf printing, when printing ...
2
votes
2answers
82 views

Prettify CiviCRM pages

Total newbie. Don't know what I don't know... I am trying Civi with WP. Tried with Joomla. I loved Drupal in another life. :-) Is there a simple way to make the output pages for Civi (like ...
2
votes
1answer
15 views

How to select templates

We are running a conference, when sending a receipt to someone how do we select one of the stored templates which we have created e.g late payment? Thanks
2
votes
2answers
57 views

How can I hide or modify page name

This might more be a Drupal rather than a CiviCRM question but how do I hide or modify the name of a page like in this example? It's CiviCRM home page here.
2
votes
1answer
193 views

Looking for a Wordpress template to integrate CiviCRM

We have some issues about wordpress themes we bought at theme forest and CiviCRM. When i google I find a a lot of same problems other users have with the CiviCRM backend and some wordpress themes. ...
2
votes
1answer
84 views

Contact individual Summary Print page Image not showing

When in the contact individual summary page i have an image that i upload and it shows. When i go to the action button and use print summary. On the print page the image does not show up. I tried ...
2
votes
2answers
163 views

Changing page layout for Contribution pages in Joomla

I have a need to remove certain Joomla styling from a specific Contributions page generated by CiviCRM, such as the main banner at the top. I have investigated such things as editing the templates in ...
2
votes
1answer
18 views

Alert/warning when template is used for same contact twice

We use templates to send thank you to our donors. We try to add new templates after a while, to tell a new story. Some donors beat our system, and contributes twice before we change our template. Do ...
2
votes
1answer
56 views

Event Template HELP HE

An hour ago I was able to create an event template. Now I have tried to go back and create a new event template and the button to create a template has vanished and I am struggling to locate it. ...
2
votes
1answer
26 views

Multilingual text not copied when using an event template to create an event

I am running a new multilingual (en & fr) civi site an making extensive use of templates for multiple event types. The templates are created with text in the appropriate language blocks on each ...
2
votes
0answers
22 views

is it possible civicrm templates_c files to be stored under the server /tmp folder?

Has someone tried it? On a 1st try I've noticed extensions stop working. For example if I set define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/tmp/civicrm/templates_c/'); would it work? (instead of ABSPATH.'...
1
vote
3answers
288 views

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

I was writing an extension which injects a template snippet, and was working fine. While working on the PHP, without any change to the snippet, it's no longer loading (the rest of the extension IS ...
1
vote
2answers
41 views

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

I recently upgraded to CiviCRM 5.9, WordPress 5.0.3 and PHP 7.2. Now when I try to create a new event from a template, after clicking 'continue' the template is cloned and I'm thrown into a template ...
1
vote
3answers
108 views

Mosaico returns 403 error due to data-bind attribute in template html

We get a 403 error by Wordfence Security on a wordpress site while creating a Mailing using Mosaico. On little investigation - I see the error is due to the addition of data-bind attribute in the HTML....
1
vote
1answer
53 views

How do I removed accordions in the advanced search

My charity needs a custom address field, rather than the address field that comes with civicrm. This is mostly set up, but there is one issue we have. We have removed the fields from the advanced ...
1
vote
1answer
32 views

How to force a field to be mandatory?

I want to make it so that all new contacts must have a contact type. I have found where the contact type is in the templates, and have managed to add the wee * besides it, but I am struggling to find ...
1
vote
1answer
29 views

Only !CRM.checkPerm(“administer CiviCRM”)) conditional works

If I put this (or any JQuery) in an .extra tpl file it works {literal} <script> if (!CRM.checkPerm("administer CiviCRM")) { CRM.$( function( $ ) { $( document ).ajaxComplete(function( event,...
1
vote
2answers
124 views

Token information not pulling through to Mailing Template

Really hoping you can help with this. We had a security update on Civi yesterday which appears to have caused an issue with how one of our tokens is pulling through to a mailing template. We used a ...
1
vote
1answer
58 views

How can I change the label name of a field and it's data also?

I'm attaching the file as it's easier to explain. I want to change the label of a field, and also the resulting data. Kind of like changing both the fields and it's display in Drupal. Can I do this ...
1
vote
3answers
301 views

Show translated string in a template field (using smarty?)

I'm using a custom profile template. I need display different text strings depending on browser language of user... One string for Spanish users and other string for all other users. It seems this ...
1
vote
1answer
206 views

CiviCRM rebuilding templates_c with permissions

I have just upgraded from 4.3.8 to 4.7.15 on Drupal 7.50. Everything went well except the <drupal_root>sites/default/files/civicrm/templates_c directory is rebuilt with the wrong file ...
1
vote
1answer
120 views

Using the wordpress plugin, how do I overide the the template files, ie EventInfo.tpl?

I have spend a number of hours trying to figure this out. If I want to change one of the template files, say EventInfo.tpl, but not inside the plugin so updates would not override it. How do I need ...
1
vote
1answer
49 views

CiviEvent - How to Template Profile Fields and Price Set Questions In Custom Groups

Is there any way to edit a CiviEvent template where I can take price set fields and put them in groupings with specific profile fields (from included profile)? Reasoning - we are collecting data, ...
1
vote
2answers
62 views

Letter Templates Pre Populate with Membership Fields

I have email and letter templates that has the following {contact.first_name} {contact.last_name} {contact.contact_id} {membership....
1
vote
1answer
48 views

Potential fix to long term issue with IDS errors on Event Confirmation emails through ActivityProcessor

A long time ago, I raised an item in the old forum about an issue I was experiencing with Event Confirmation emails sent to the Email Activity Processor being rejected with this message: Failed ...
1
vote
1answer
79 views

Add Membership Token to PDF Template Joomla

I have been banging my head on this for a few days. I created a PDF Template for our members so I can run a search of members in Expired or Grace, then PDF a letter reminding them to pay their ...