Questions tagged [custom-templates]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
22 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 ...
user avatar
  • 23
0 votes
2 answers
14 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 ...
user avatar
2 votes
1 answer
27 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 ...
user avatar
2 votes
2 answers
32 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" ...
user avatar
  • 355
1 vote
1 answer
105 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. ...
user avatar
1 vote
2 answers
43 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 ...
user avatar
1 vote
1 answer
31 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 ...
user avatar
2 votes
1 answer
49 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 ...
user avatar
0 votes
1 answer
30 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 ...
user avatar
  • 696
1 vote
1 answer
48 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 ...
user avatar
  • 113
2 votes
1 answer
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/...
user avatar
  • 2,864
0 votes
3 answers
42 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 '...
user avatar
0 votes
1 answer
97 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
user avatar
  • 2,836
1 vote
0 answers
48 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 ...
user avatar
  • 621
2 votes
1 answer
63 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 ...
user avatar
  • 23
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 ...
user avatar
  • 159
1 vote
1 answer
36 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 ...
user avatar
  • 105
1 vote
1 answer
231 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 ...
user avatar
  • 544
1 vote
0 answers
33 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 ...
user avatar
  • 197
2 votes
1 answer
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 ...
user avatar
2 votes
2 answers
1k 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 ...
user avatar
  • 2,864
2 votes
1 answer
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 ...
user avatar
  • 353
0 votes
1 answer
25 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 ...
user avatar
  • 387
2 votes
2 answers
174 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 ...
user avatar
  • 2,366
1 vote
2 answers
69 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 ...
user avatar
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 ...
user avatar
  • 71
0 votes
1 answer
41 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 ...
user avatar
  • 2,279
5 votes
2 answers
92 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 ...
user avatar
  • 1,630
0 votes
2 answers
175 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 ...
user avatar
  • 67
3 votes
1 answer
351 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....
user avatar
3 votes
1 answer
299 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?
user avatar
  • 3,148
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 ...
user avatar
0 votes
1 answer
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 ...
user avatar
1 vote
0 answers
68 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 ...
user avatar
  • 33
1 vote
0 answers
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>...
user avatar
3 votes
2 answers
109 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 ...
user avatar
  • 67
0 votes
1 answer
92 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 ...
user avatar
  • 3,584
0 votes
2 answers
37 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 ...
user avatar
0 votes
2 answers
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. ...
user avatar
  • 599
0 votes
1 answer
43 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 ...
user avatar
  • 3,584
0 votes
1 answer
76 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 ...
user avatar
  • 781
2 votes
1 answer
640 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 ...
user avatar
2 votes
2 answers
307 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 ...
user avatar
3 votes
2 answers
266 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
user avatar
  • 26.9k
0 votes
1 answer
45 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, ...
user avatar
  • 1,350
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 ...
user avatar
1 vote
1 answer
83 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?
user avatar
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 ...
user avatar
  • 1,208
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 ...
user avatar
  • 11
2 votes
1 answer
47 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 ...
user avatar