Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [developer]

A developer is a person with the technical IT skills to change the code base of CiviCRM. Preferably s/he knows about PHP, SQL, HTML and Javascript.

Filter by
Sorted by
Tagged with
12 votes
1 answer
1k views

How would you anonymise (or redact) private data for developer stage?

Private information is confidential. However for developers to debug errors they need a copy of your data that's close enough to production to effectively debug. How can we redact, strip or remove ...
ñull's user avatar
  • 1,208
10 votes
3 answers
889 views

How do I set up dev environment with buildkit?

I am new to the developer/code side of CiviCRM and attending the Dev training at CiviCON. I saw a post on StackOverflow about installing buildkit but haven't seen it re-posted here. I would appreciate ...
KSneed's user avatar
  • 103
3 votes
3 answers
431 views

ER diagram for the latest Civicrm , Foreign key in Structure, test cases/plans

Where can I get the ER diagram for the latest CiviCRM? I need it for internal reporting purposes in our organization. I am able to download the Table structure from phpMyAdmin. However, it does not ...
Parthibaraj Rajasekar's user avatar
19 votes
3 answers
2k views

How do I get more than 25 records from the API?

I'm making a normal api call such as: $params = array( 'version' => 3, 'sequential' => 1, 'membership_type' => 1 ); $result = civicrm_api('Membership', 'get', $params); But I only get ...
Owen Kelly's user avatar
8 votes
1 answer
689 views

How to print variable/debug data from your extension.php?

I am trying to add a menu entry in the navigation, but this is causing the navigation menu to disappear, I am trying to debug the code but could not find any particular file. I have checked the ...
Siddharth Gupta's user avatar
3 votes
1 answer
124 views

How do I modify a core CiviCRM file (to change a search order)?

Looks like one of core CiviCRM files (namely part of mySQL query at CRM/Contact/BAO/Query.php) has to be changed in order to achieve "Search results sort by Last Name". What would be the best (I mean, ...
yurg's user avatar
  • 2,050
2 votes
1 answer
111 views

How can I deal with a missing or corrupt binary ("advanced") log table?

Sometimes I install an extension that creates a new MySQL table, but it breaks because I have binary ("advanced") logging enabled. CiviCRM tries to write to the binary log, and it fails because the ...
Jon G - Megaphone Tech's user avatar
12 votes
2 answers
3k views

What are the different cache clearing mechanisms relevant when developing?

When doing developpment, i sometimes found it difficult to clear all the cache in a way i'm sure everything i have done is taken into account. Let's take some examples : in an extension, i do an ...
samuelsov's user avatar
  • 2,331
9 votes
1 answer
393 views

How to develop extension that relies on libs brought in by composer

I'm wanting to (re)develop an extension and I'd like to use some 3rd party libraries, eg. guzzle, that I would normally manage via composer. So my github repo will contain a composer.json file, but ...
artfulrobot's user avatar
  • 3,932
9 votes
1 answer
88 views

How do I modify the new 4.6 CiviMail form?

I am the author of a CiviCRM extension that needs to disable, depending on configuration, the URL tracking and open tracking checkboxes of the mailing form. In version 4.4 this was accomplished using ...
konadave's user avatar
  • 192
6 votes
3 answers
987 views

What's the correct way to log debug info to log?

The "current" wiki says to use CRM_Core_Error::debug and says, "Most runtime errors are logged here, as well as data that you explicitly write to log using the CRM_Core_Error::debug log=true parameter....
Jon G - Megaphone Tech's user avatar
6 votes
2 answers
208 views

How could I use CiviCRM for sponsorship

We have a node called sponsorship that is a person, place, or thing. Person is likely a child, but it could be a teacher, nurse, etc. A person generally has one donor that pays a monthly amount. A ...
mike_kc's user avatar
  • 539
5 votes
1 answer
237 views

How can I use Xdebug with CiviCRM unit tests?

Ideally in conjunction with an IDE (I use Netbeans, but will fire up pretty much anything that gets this to work).
Jon G - Megaphone Tech's user avatar
5 votes
1 answer
162 views

What is the mechanism for tailoring an Angular form?

I want to modify the behaviour of an Angular form. The answer to question 4700 tells me 'how' to do it (add some JavaScript), but I'm interested in 'where' to do it. If it was a PHP form I could use ...
Ken West's user avatar
  • 1,047
4 votes
2 answers
176 views

What character is VALUE_SEPARATOR?

I need to run a MySQL query to split the values in the fee_level field of the civicrm_participant table. I just can't determine what character to use as the delimiter. When I look at VALUE_SEPARATOR ...
Mike Steigerwald's user avatar
4 votes
1 answer
231 views

How can I use CiviCRM's cache table?

When developing an extension, I'd like to cache some data to avoid the expense of re-calculating it. Is there a civicrm version of the Drupal's caching interface for developers?
Alan Dixon's user avatar
  • 6,861
4 votes
3 answers
807 views

How to set a default value for a custom field

EDIT: this is NOT working, at least in CiviCRM 5.24.2 EDIT: this is done automatically by CiviCRM from 5.18+ I have a custom fieldset on Contributions that uses an option list. The option list has a ...
artfulrobot's user avatar
  • 3,932
3 votes
1 answer
95 views

Under what circumstances is API joining available?

If I go to the API explorer and select ContributionSoft as the entity, I see options to enable joining. But I don't see any joining options available for other entities like Contribution and ...
Sean's user avatar
  • 3,168
3 votes
1 answer
247 views

How to add a new entity in CiviCRM extension

As I am new to CiviCRM. I am trying to create a new entity for my extension to add some new data in database schema. The documentation I am following to create a new entity is: https://docs.civicrm....
Syed Aqeel's user avatar
3 votes
1 answer
60 views

What are best practices for deploying changes?

I'm looking to set up best practices for a development workflow (i.e. dev > staging > production) In Drupal there is features, which allows you to export your configuration into code and then deploy ...
ryancross's user avatar
  • 151
3 votes
1 answer
97 views

How do I run CiviCRM PHPUnit tests from within Netbeans?

I want to run PHPUnit tests from within my IDE - and I know Karin G. has created excellent directions for PHPStorm, but I use Netbeans 8.2. What can I do?
Jon G - Megaphone Tech's user avatar
3 votes
1 answer
86 views

recently viewed items stack: Add a configuration option for MAX_ITEMS in Recent.php

What's the recommended way to make the max item count of civi's recently viewed items stack configurable. Current value ist a constant MAX_ITEMS defined directly in CRM/Utils/Recent.php. A quick ...
nielo's user avatar
  • 1,304
3 votes
1 answer
206 views

Tutorial for creating pages with ajax

For our CiviCRM instance, I use to create forms that allow the user to execute some specific tasks. Typically they end up on a form, they enter some values, and the postProcess function executes some ...
johanv's user avatar
  • 402
2 votes
3 answers
204 views

Adding a contact summary tab

I am completely new to Civicrm and successfully created an extension that modify and existing page{Contact Page} but I am required to create a extension that shows a new CIVICRM Contact Tab that show ...
Mo-'s user avatar
  • 21
2 votes
1 answer
70 views

Long running Scheduled Job

In the Areas extension (https://lab.civicrm.org/extensions/org.civicoop.areas) an administrator can define areas such as West Coast and a contact living in a city in West Coast is linked to the area ...
Jaap Jansma - CiviCooP's user avatar
2 votes
3 answers
215 views

How to Override System Workflow message template variables, single and batch

My client has advanced invoice requirements. In the past we had a custom Drupal module and a custom template file. Added a link "Print Invoice" to the individual contributions Form.tpl and then did a ...
chrisfromredfin's user avatar
2 votes
1 answer
64 views

Unable to locate folder xml under the civicrm root directory

I am new to civicrm and trying to build extension. The extension is build and activated. The stage where I got stocked is when I trying to add entity for my civicrm extension. I am following the ...
Syed Aqeel's user avatar
2 votes
1 answer
2k views

How can I trigger a selection for a Select2 EntityRef element via javascript?

The CiviCRM EntityRef form element uses a Select2 select box to make lots of CiviCRM forms more awesome. A user can, for example, search for contacts to choose one. Great. I am building an extension ...
Sean's user avatar
  • 3,168
2 votes
1 answer
137 views

Recommended way to deal with delete action in a page?

When developing extensions I have always followed this path when I had a page listing stuff (for example books) and an action link to delete the book: Create the page and add a link to the form ...
ErikH - CiviCooP's user avatar
2 votes
1 answer
149 views

Multiple values for custom fields in Activities?

Anyone has seen any custom implementation/extension of custom group multiple values for Activities? Since we are using Activities for many different scenarios, many times the requirement of having ...
luciano_s's user avatar
  • 566
1 vote
1 answer
41 views

Is upgrade possible for `payment` type Extension?

I see extension of type 'payment' has been deprecated and hence not listed in the active modules we get from getActiveModuleFiles() function. Due to this, any upgrade to this ext. is not possible ...
jitendra - fuzion's user avatar
1 vote
1 answer
53 views

Participant quantity passed to Additional Participant pages

On an event registration form I need to tailor a Price Set field (ticket type) for all participant pages, based on what is selected in the Participant count on the first page. This is doable on the ...
rollox's user avatar
  • 63
1 vote
1 answer
94 views

How to detect/handle card failure from Payment Provider's callback URL

I have implemented a payment gateway for SwipeHQ's 1-off payment mechanism. It's similar to PayPal's mechanism in that there's an LPN that notifies CiviCRM of the success/failure of the transaction, ...
buzzki's user avatar
  • 31
1 vote
1 answer
60 views

Can hook_civicrm_links create links beside rows of a contact's Events tab?

I've looked at CRM/Event/Selector/Search.php to see it creating the View/Edit/Delete links, but am just unsure how to make this work. Can someone advise what the appropriate $objectName and $op should ...
Nicholai's user avatar
  • 2,838
1 vote
1 answer
157 views

entityRef widget seems to not respecting params

Whatever has been tried, this code doesn't restrict entityRef widget output according to desired parameters: $selection = array(132, 168, 169); $sa_custom_props = array( 'api' => array('params' =...
yurg's user avatar
  • 2,050
0 votes
1 answer
1k views

Multi-select not working with crmUiSelect AngularJS select2 directive

I created a select2 element with CiviCRM's crmUiSelect AngularJS directive by using the following code in my controller: $scope.options = [ {"value": "foo", "label": "Foo"}, {"value": "bar", "...
Sean's user avatar
  • 3,168