Questions tagged [custom-templates]
The custom-templates tag has no usage guidance.
62
questions
0
votes
1
answer
43
views
Undefined array key "merge_same_household"
I'm trying to export contacts from the list in CiviCRM but got a visual warning which does not let me proceed:
Warning: Undefined array key "merge_same_household" in /bitnami/wordpress/wp-...
0
votes
1
answer
39
views
Special characters in template
We are using a docx file for a template and are calling the API for variables like first/last name etc. As we are working with a client who has a lot of contacts with special characters in their names ...
0
votes
2
answers
18
views
Template for changing text on membership confirmation
There's this text that shows on the membership confirmation page that says: "Select a Membership Level"
It looks odd since you're not selecting anything on this page, it's just the ...
2
votes
1
answer
30
views
Editing RelationshipSelector.tpl section of a UserDashboard
I'm trying to edit the table row content of the "Your Contacts / Organizations" section of the UserDashboard:
It appears that this section of the UserDashboard is controlled by the ...
2
votes
2
answers
39
views
Where should custom "Region" calls be stored?
I'm wanting to add content to a region in EventInfo.tpl. The Docs give this function as an example, but do not clarify exactly where this "CRM_Core_Region::instance('page-body')->add" ...
1
vote
1
answer
240
views
Create customized "block" in Mosaico
My website is on Drupal.
We have preformatted Mosaico templates with header (view in your browser) and footer (social media buttons, organizational address, and unsubcribe options) in English.
...
1
vote
2
answers
47
views
Add new column to table in field 'selector.tpl'?
The purpose is to modify the template by adding new columns.As you can see in screenshot CIVICRM propose Nom "name", courriel "email",Telephone "phone", Action . So i ...
1
vote
1
answer
36
views
Can't load custom template
We need to customise a template called 'Selector.tpl', we have identify this template with debugging on and copied it into /wp-content/uploads/civicrm/templates/ and this directory is declared in ...
2
votes
1
answer
58
views
Thank You page on contribution form. Print option for the PDF that is emailed as "receipt.pdf"
When completing a contribution, an email can be sent out with an attached PDF called "receipt.pdf". Is it possible to have this PDF printable on the Thank You page? I currently have a sloppy ...
0
votes
1
answer
31
views
What is the best way to disable the jquery.crmEditable.js file in CiviCRM without modifying the core common.js file?
We have a use case whereby certain users should not be able to edit certain rows of custom data.
CSS selectors can hide the "Edit" links for these rows, but the inline editing (i.e. clicking on the ...
1
vote
1
answer
51
views
Custom emails automatically generated based on participants filling in drupal forms
Hi to all and thanks in advance.
I'm on Drupal 7 and Civi 5.20.2. I have the CiviRules and EmailAPI (CiviCoOp) extensions as well as Mosaico.
We have participants to our events that apply for ...
2
votes
1
answer
52
views
Removing elements for non-admin users
There are several instances where I want to remove some buttons, inputs, tabs, etc on various screens for non-admin users. For instance, on the Event Search screen in this template
CRM/Event/Form/...
0
votes
3
answers
45
views
I modified a template file and now can't remember how
Yes I know - very foolish but hoping someone will take pity on me!
This is the my screen when entering a contribution or registering for an event while logged in.
I customised it to include the text '...
0
votes
1
answer
119
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
1
vote
0
answers
49
views
Querying participant custom fields in CRM/Event/Form/Participant.tpl
I am trying to add a custom behaviour while editing a participant, so that based on several conditions of what the user had chosen as custom fields in the event's registration form, the confirmation ...
2
votes
1
answer
69
views
Event with multiple days - multiple choices
I can't seem to find exactly what I need. So here it goes. We are having our annual meeting, but this year there are essentially 3 events that people can choose to go to and I will need name tags for ...
2
votes
1
answer
66
views
launch custom profile from Edit button?
Civi 5.9.1. WordPress 5.0.3
I built a profile for my organization's staff to use when adding an Individual with a specific subtype ("Farmer"). I created a New Farmer menu item under Contacts>New ...
1
vote
1
answer
45
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
1
answer
255
views
Mosaico 2.0, Drupal 7.64 - "Sorry an error occurred and your information was not saved"
Installed Mosaico 2.0-beta4 on Drupal 7.64 and CiviCRM 5.7.2. I followed all installation instructions and installed Shoreditch then Flexmailer then Mosaico.
I'm getting an error - when I try and ...
1
vote
0
answers
37
views
How to custom a predefined template file?
I want to add a button into the activity edit tab. Please refer an image.
Please provide a sample snippet (Code) for custom template
My Snippet
CRM
.$(function($) {
console.log('Form ...
2
votes
1
answer
61
views
Create buttons on action from ResultTasks
I´m trying create buttons in ResultTasks.tpl for "show on map" and "export". This actions are in dropdown list with select named "task". I first tried duplicate the select, but it worked only last ...
2
votes
2
answers
2k
views
Adding CSS to extra tpl file
I've added CSS to a Summary.extra.tpl file to change reports. But the CSS does not apply.
Adding the CSS by itself crashes the report (character encoding issue) so adding the {literal} tag is what I ...
2
votes
1
answer
31
views
Ignoring a hidden field on event registration form
I have a custom event template on which I hide some fields based on whether someone is registering themselves or an additional participant. There are 2 different price options, one for the main ...
0
votes
1
answer
30
views
Extend templates through the hook file
I have configured the "Custom" folders for templates and PHP
following https://docs.civicrm.org/dev/en/latest/framework/templates/extending-smarty/
I created this hook file (and I'm sure it's ...
2
votes
2
answers
179
views
Jquery not affecting custom fields of an activity
I have written some jquery (inside an extra template file) that does some simple show/hiding of custom fields in an activity based on user selections. We use it as a helpful tool for users to select ...
1
vote
2
answers
73
views
Where can I edit text on pcp page
How do I change this text
“This contribution is being made thanks to the effort of [contact name], who supports our campaign.You can support it as well - once you complete the donation, you will be ...
0
votes
1
answer
24
views
Mosaico blocks not staying in place
Mosaico has been loaded for use in CiviCRM 4.6.33 in a Drupal environment. However, when blocks are dragged to create a template they do not stay in place. Has anyone experienced anything similar and ...
0
votes
1
answer
42
views
Hide Line items if user is logged in
I am working on an event registration. We need to hide certain price set line items based on various factors. Most are based on previous field response but there is one line item that needs to be ...
5
votes
2
answers
94
views
AGPL: Should sites provide public download links for CiviCRM extensions?
I guess this question has a few parts:
Are CiviCRM extensions are considered to be modifications of CiviCRM?
Are custom file overrides considered to be modifications of CiviCRM?
If so, then under ...
0
votes
2
answers
181
views
How can I create custom contribution page (CiviCRM 4.7.25 on Wordpress 4.8?)
I want to create custom contribution page but I don't know how?
for creating custom pages is needed any extensions or plugins?
the below page is one of the pages that I created I want to delete ...
3
votes
1
answer
396
views
how do I create a new template on civicrm / mosaico
Is not a question, i just want to share with you how you can create a new template on civicrm / mosaico!
for wordpress:
Template directory:
/www/yoursite/wp-content/uploads/civicrm/ext/uk.co....
3
votes
1
answer
304
views
How can I customize the "Fatal Error" screen?
I would like to change the language on the "Fatal Error" screen that users occasionally encounter by adding some text specific to my organization. How can I do this?
1
vote
1
answer
22
views
Images with text in Message Templates in a multilingual installation
I am trying to customize a message template by adding a header image with some text in it. The problem is that my website is in 2 languages and I need that the header image is sent to the user ...
0
votes
1
answer
43
views
Civi CRM Expert in Europe wanted
i (Austrian based company) am looking for a CIVI-CRM-Expert in Europe (preferred) for helping with various implementations on a basic level (customizing invoices, create profiles for a kind of ...
1
vote
0
answers
70
views
Wordpress custom contribution and newsletter signup forms
How customizable are the contribution forms? I have created a standard contribution page from the CiviCRM plugin, but I would like to hammer it into a very stylized design.
Alternatively, is it ...
1
vote
1
answer
64
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>...
3
votes
2
answers
128
views
How to include buttons in Civimail
I want to include two buttons in civimail template Accept and Decline. If the user clicks on accept/ decline button, It should notify the administrator with an email.However I can add buttons using ...
0
votes
1
answer
104
views
How can I change the way price set information is presented on a contribution page?
Contribution pages showing price set information (i'm using a radio button field with various options to choose from) show the various price option with the label text first, in bold, and then the ...
0
votes
2
answers
40
views
Custom field data - maintaining uniformity
I want to add Educational information of individuals as custom field set. However I want the data to be entered to be uniform. In our organization, different people will enter data into civiCRM. Some ...
0
votes
2
answers
67
views
Strip Drupal Page Template from CiviCRM Contribution Page
I want to strip all Drupal navigation etc coming from page.tpl.php for a particular contribution page and all the associated pages of the contribution process. But all just for one contribution page.
...
0
votes
1
answer
49
views
How to change the display of case listings to show and/or sort on case ID
My client makes extensive use of cases, and the case ID is an important identifier. CiviCRM tends to downplay the case ID, however, often placing more emphasis on the case subject, which isn't as ...
0
votes
1
answer
78
views
Modifying Contribution and Event Templates
I am trying to modify the confirmation and final page (not sure of the name) for contributions and events. I want to modify the templates like described in this post - Why does the Contribution page ...
2
votes
1
answer
667
views
Custom Report Template
Keep getting message
Template not found. Could not find the report template. Make sure the report template is registered and/or url is correct.
I followed a guide in setting up a custom report. I ...
2
votes
2
answers
319
views
adding a column to the standard relationships report in Contact Reports
Using the standard relationships report under Contact Reports, I would like to be able to add another column under Contact B. That column would pull the supplemental 1 address field.
Using the ...
3
votes
2
answers
283
views
How to add custom templates (tpls) or php files
What is the 'civi' approach to customising templates and php files? (if this question is a duplicate very happy to remove. I just searched for one after reading Error Message Customization
0
votes
1
answer
48
views
Remove link(s) from an Activity View screen via crmReplace
How should {$form.source_contact_id.html} from \civicrm\templates\CRM\Activity\Form\Activity.tpl be altered so only text remains/ without an URL? smarty escape doesn't seems to be a good idea, ...
1
vote
1
answer
27
views
How to suppress columns from Manage Group search results
I'm customizing a version of the Manage Groups page. Users don't want to see Description, Group Type, or Visibility. I thought I could just customize a version of Group/Form/Search.tpl .
It's easy ...
1
vote
1
answer
101
views
How do I duplicate a mail template [duplicate]
I have an existing email template I have made and now I want to repurpose it for another use while keeping the basic layout. How can I duplicate my original template please?
2
votes
1
answer
76
views
Switch template in extension
Extension loads and I added the following hook to switch demographics template:
function myext_civicrm_alterTemplateFile( $formName, &$form, $context, &$tplName) {
switch($tplName) {
case ...
1
vote
0
answers
19
views
Template customization don't appear on validation errors, query string?
I am looking some code for a customization of a specific contribution page on CiviCRM 4.4 system. An extension is implemented that runs hook_buildForm() which operates on the form based on the ID. The ...