Questions tagged [templates]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

Create Event API - Scheduled Reminder ignored?

when i create an event from a template some tabs are ok (prices, online registration) but Scheduled Reminder tab is always not copied and empty. Its' a Bug or a Feature ? My call is like this : $...
0
votes
1answer
23 views

Blank screen when using versafix-1 templates

This weekend I migrated my site from one server to another. The htdocs remained the same, just the infrastructure was upgraded. I backed up my sql database and files and restored them in the new ...
1
vote
2answers
40 views

PHP Fatal error: Smarty error: [in string: (…)]: syntax error: (secure mode) (…) not allowed in if statement (…)

The CiviCRM doumentation describes, how to use Smarty to customize templates for mails and pdf's: https://docs.civicrm.org/user/en/latest/common-workflows/tokens-and-mail-merge/#smarty E.g.: {capture ...
1
vote
1answer
18 views

List all Profiles in a group when using “Profile Search Form” as a Joomla menu item

I have a Job Postings profile that gets recorded on a contribution form. The user is then added to a "Job Postings" group. I'd like to have a Profile Search Form on a Joomla page (menu item) ...
1
vote
2answers
220 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
44 views

Create array in Smarty template

I want to modify the Smarty template sites/all/modules/civicrm/templates/CRM/Case/Audit/Report.tpl. I want to complement an existing foreach expression with comparing the incoming variable $group....
0
votes
2answers
23 views

CIVI mail - URLs inserted directly into an email template do not direct the user to the correct web page

I inserted a url into a CIVI email template - On testing the email, clicking the link which has not changed it re-directs the user to our site and gives an Error 404 page not found. https://www....
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 ...
0
votes
0answers
17 views

Help to build a new email template and update an existing email template that is, will be attached to an Action

Is any anyone free to help with the work on the templates, we have one template we need to amend, make it a single column layout. Then build another template as a copy with blocks in a different order
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 ...
2
votes
1answer
37 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_{...
4
votes
2answers
125 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 ...
0
votes
1answer
16 views

How do I use a hidden column in a custom search template?

I have created a custom search based on relationships. Each row shows a contact and a related organisation in separate columns as well as other info. Each contact is automatically linked to the view ...
0
votes
0answers
18 views

Membership renewal receipt template not showing membership start- and end dates

In the membership renewal (online) receipt template, it says, here, https://github.com/civicrm/civicrm-core/blob/master/xml/templates/message_templates/membership_online_receipt_text.tpl#L68 {...
1
vote
0answers
14 views

email template sent instead of actual email

This is a weird one. I wanted to send an email to four specific Contacts, all members of one of our Groups. I searched to display the Group list, selected the four contacts, and gave the action to "...
5
votes
2answers
47 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. ...
7
votes
3answers
740 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?
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,...
0
votes
2answers
28 views

Modifying Relationship.tpl modal

I have custom fields underneath a relationship type that I want to restrict to view only or entirely remove if they are not a specific user. I can make the permissions work so the issue is load order ...
2
votes
1answer
16 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
60 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.
0
votes
1answer
29 views

What permissions are needed to edit Mosaico templates?

My guess it that template creation and editing requires Administer CiviCRM - but wanted to check in and see if there was another way. Thanks!
1
vote
1answer
24 views

How to show paidby and check_number on Contribution - Receipt (on-line)

CiviCRM 5.16.3 on Drupal 7. I would like to show payment menthods of contribution in template Contribution - Receipt (on-line). I tried to insert $formValues.paidby or $paidby but they show nothing. (...
0
votes
1answer
60 views

How can I create mosaico block with 2 button?

I would need a mosaico block with 2 button, is it possible to create? Thanks
3
votes
1answer
40 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} (...
1
vote
3answers
123 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....
2
votes
2answers
70 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 ...
1
vote
2answers
126 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
3answers
325 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 ...
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 ...
1
vote
1answer
37 views

How to change or add a header to the “Print PDF Report” action

I would like to add a header of my logo to "Print PDF Report" action when a search or report is generated. Is it something easily achievable? Thanks
1
vote
1answer
54 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 ...
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
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 ...
4
votes
2answers
141 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 ...
1
vote
2answers
42 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 ...
0
votes
1answer
188 views

Where does Mosaico store my templates?

Setting up Mosaico. I have created a new template from one of the existing base templates. I save my new template, which now appears as a 'configured template'. I'd like to tweak the code for this new ...
0
votes
1answer
60 views

Charity wordpress template that works with CiviCRM

I want to move our website from Drupal/CiviCRM to Wordpress/CiviCRM but understand that not all wordpress template will work with CiviCRM. Does anyone have a recommendation on the best charity ...
1
vote
1answer
61 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 ...
3
votes
2answers
196 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
3answers
334 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 ...
0
votes
1answer
54 views

Newsletters only display plain text, not HTML

I'm having a strange problem here: basically, whenever we send a newsletter, only the plain-text part appears. I have checked with the SMTP gateway and the emails it is sending out are the same as the ...
2
votes
1answer
200 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
2answers
82 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. ...
0
votes
1answer
27 views

Customise Contacts Relationships Tab

I want to customise the contacts relationships tab screen to show if the listed contacts (Individuals) belong to a specific group or not. I'm not sure where to start and would appreciate any pointers. ...
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 ...
1
vote
0answers
110 views

Which civicrm hook for Event Registration form field content change in Drupal module?

Preamble: Event Registration Settings form ( civicrm/event/manage/settings?reset=1&action=update&id=EVENT-ID ) has separated text areas for Event Summary/Description ( "Info and Settings" ...
1
vote
1answer
25 views

What tpl or php file calls/loads CRM/UF/Page/Group.tpl for the Profiles page?

I trying to debug my civicrm backend Profiles page on Joomla. Could someone backtrace the templates/CRM/UF/Page/Group.tpl when the the Profiles page is loaded? I believe the Profiles page loads the ...
1
vote
0answers
48 views

Extend CiviCRM template in Extension

I am trying to extend the MembershipView.tpl which look like the image below. I have created an extension and added a MembershipView.extra.tpl file to my extension folder and placed it in Template>CRM>...
0
votes
1answer
107 views

Link State to Country in Custom Fields

Using 4.6, I have a custom field group, and from that group a profile. It includes a State select dropdown and a Country select dropdown. How would I go about "linking" the Country custom field to ...