Questions tagged [custom-templates]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
62 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
2answers
39 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
1answer
28 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
1answer
44 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
1answer
26 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
1answer
42 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
1answer
50 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
3answers
41 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
1answer
90 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
0answers
45 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
1answer
57 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
1answer
61 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
1answer
34 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
222 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
0answers
32 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
1answer
60 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
2answers
866 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
1answer
28 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
1answer
24 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
2answers
168 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
2answers
64 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
1answer
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
1answer
39 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
2answers
91 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
2answers
170 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
1answer
335 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
1answer
297 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
1answer
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
1answer
41 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
0answers
65 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
0answers
51 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
2answers
101 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
1answer
91 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
2answers
36 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
2answers
64 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
1answer
41 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
1answer
75 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
1answer
621 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
2answers
297 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
2answers
263 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
1answer
43 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
1answer
26 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
1answer
76 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
1answer
75 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
0answers
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 ...
2
votes
1answer
42 views

Requiring "Assigned" and "Target" contacts when recording Activity

When creating a new Activity record, I need to require the "With contact" and "Assigned to" fields have a contact selected. In the activity/form/activity.php file I can add 'required'=>TRUE to the ...
5
votes
1answer
122 views

Is there a way to customize Activity Type screens?

Trying to customize individual Activity Type displays but couldn't find any info on the proper procedure. I'd like to hide certain fields from certain activity types. For instance, for our food bank ...
3
votes
2answers
286 views

How can I show groups in membership report columns?

I've got the request to display (certain) groups in the membership detail report. A lot has been written over time about customizing reports, and I'm not sure what info is up-to-date. This looks good: ...
10
votes
2answers
734 views

Where to modify billing information form ≥ 4.6?

One of the first things we're asked to change in any installation is the billing block: Nothing too fancy, just some changes to layout and labels, usually yielding something along the lines of This ...
4
votes
2answers
383 views

Can I override core classes or PHP files with custom versions?

Can I override core behavior of CRM/SMS/Providers.php by creating the file with the changes in my civicrm_custom_php directory?