9 votes
Accepted

How to get CiviCRM Views to work in Drupal 8 with separate CiviCRM database

I had the same problem today, so I looked in the source code. In civicrm.install there's a function called _civicrm_get_db_config. It's looking in the $databases array for an element with a key ...
Jon G - Megaphone Tech's user avatar
6 votes

create a group of contacts NOT matching search criteria

Create a group that DOES match the criteria. Go to Search - Custom Search - Include/Exclude search. Search for contacts excluding your group from (1).
Demerit's user avatar
  • 22.5k
5 votes
Accepted

Mapping of CiviCRM's Contact card fields to Drupal user entity's

In general the way to sync drupal entities with CiviCRM fields is to enable the civicrm_entity module. Documentation can be found here.
Coleman's user avatar
  • 18.3k
5 votes
Accepted

What are `*.mgd.php` files for?

So a little research takes me to Totten's blog where he lays out the rational for splitting out entity definitions into seperate PHP files. The full definition of the array format is laid out in the ...
ErichBSchulz's user avatar
  • 1,571
5 votes

How can I bulk update a collection of recurring contributions to set the next scheduled contribution to a specific date?

Since yesterday you can now do that if you're using Drupal! @jackrabbithanna (Mark) added some code to CiviCRM Entity Project, which now exposes civicrm_contribution_recur as an Entity in Drupal so ...
KarinG - Semper IT's user avatar
5 votes

Can you create an event with Webform-CiviCRM integration?

I know! The answer is CiviCRM Entity! I've done things like: civicrm-event/9/edit and civicrm-contribution/add -> let's try civicrm-event/add - voila:
KarinG - Semper IT's user avatar
5 votes
Accepted

Fixed - Why can't I display some Civi contact fields through CivCRM Entity in Drupal 8?

Graham - I've reproduced that. Not seeing the date of birth field either. Seeing lots of other dates though. Not sure what's going on. Could you please open an issue here: https://github.com/...
KarinG - Semper IT's user avatar
4 votes
Accepted

Is there an introduction to CiviCRM Entity anywhere?

I found the best introduction was this workshop: https://denver2015.civicrm.org/sessions/civicrmdrupal-integration-showcase The PDF on that page is helpful; the video of the workshop is available ...
Jon G - Megaphone Tech's user avatar
4 votes
Accepted

CiviCRM Entity and ACL Permissions

I wish i would have seen this question earlier, I can certainly help you out. checkout civicrm_entity.api.php in the civicrm_entity module I don't believe the controller is checking the ACL's when ...
jackrabbithanna's user avatar
4 votes

Using CiviMember to automatically create a Drupal user

This can work -> when on the Contact Summary View -> under Actions -> an Admin can create a user account for that Contact; And then to Automate this workflow: you can use CiviCRM Entity module + ...
KarinG - Semper IT's user avatar
4 votes

How can I show a list of events with summaries and either a register link or message saying they are full?

As with many problems with Drupal integration civcrm_entity is the answer. Install the latest civicrm_entity module for Drupal in the usual way (Recommend using Drush if you can).You'll also need to ...
joewickert's user avatar
4 votes

Civicrm Entity & Drupal 8

There is still work to be done to get this firing fully - and you many need to reach out to some of the Partners to help get things working sufficiently for your scenario. There are a number that have ...
petednz - fuzion's user avatar
  • 28.2k
4 votes

CiviCRM Entity display shows email addresses - should only show display name

Congratulations, you're the winner of jackrabbithanna's Friday open source evening random issue choice award! I've added a configuration option to CiviCRM Entity to be able choose a few options for ...
jackrabbithanna's user avatar
4 votes

Drupal 9 Views: rich text fields render with all HTML tags visible

Based on feedback from Skvare's Mark Hanna on chat.civicrm.org you need to rewrite the field output, using the _value version and add |raw in the twig. For the event description field, this looks like:...
Nic's user avatar
  • 530
4 votes
Accepted

Include a CiviCRM role into Drupal View (custom dashboard)

I'd start with a case relationships view. Filter by relationship type, and case type. Bring in the case details via a views relationship And bring in the two contacts (A and B, from the relationship) ...
Craig Almond's user avatar
  • 2,037
3 votes

Possible to import Contacts and Activities at the same time?

You can cut down one step by assigning the to be imported contacts an external ID; then also use that external ID to import the Activities. Other than that - we end up writing mysql queries to import ...
KarinG - Semper IT's user avatar
3 votes

How to Create an extension?

Not everyone has the skills to create extensions. But here are a couple of links that you might find useful: https://github.com/totten/civix https://wiki.civicrm.org/confluence/display/CRMDOC/Create+...
Sanjay Jain's user avatar
  • 2,826
3 votes
Accepted

Can I reference the contact ID of the Current Employer with a Drupal entity token?

We ended up using Markup field in the webform with some PHP code that made a CiviCRM API call: <?php $params = array( 'version' => 3, 'is_active' => 1, 'sequential' => 1, '...
Dan O'Brien's user avatar
3 votes
Accepted

4.7.14 Upgrade: Custom fields missing from views' filter criteria

This relates to CRM-19545. PR-417 will hopefully be released in 4.7.16 but until then, you could apply the patch to restore the previous functionality.
Aidan's user avatar
  • 13.4k
3 votes

Is there any step by step guideline to know CiviCRM for absolute beginner?

I'd suggest you start at https://docs.civicrm.org/ You'll want to read through the User Guide to get an understanding of what CiviCRM is and what it can do. In particular, you will need to study the ...
Aidan's user avatar
  • 13.4k
3 votes

ProPublica Congressional API CiviCRM Module

The successor to the Sunlight API Dupal module is the Civi-native Electoral API extension. I wrote documentation back when I was collaborating on the project, but it seems to have been taken down. I ...
Jon G - Megaphone Tech's user avatar
3 votes
Accepted

Can CiviCRM entities be used as events to trigger Drupal Rules?

The rule will only trigger when the Drupal version of the contribution page at path /civicrm-contribution-page/(id) We haven't added a feature to trigger the rule event when the civi version of the ...
jackrabbithanna's user avatar
3 votes

Can you create an event with Webform-CiviCRM integration?

You can also use webform + CiviCRM Entity + rules + webform rules to do this job. You would need to gather all required fields for the event on the webform, and map the submitted values properties and ...
jackrabbithanna's user avatar
3 votes
Accepted

CiviCRM Entity, Display tags name in contact

I need to add an option "Tag ID" in the Host Source Column field setting of the CiviCRM Entity Reference module to make this work. It won't take much to add it. Look in your code to the matching ...
jackrabbithanna's user avatar
3 votes

Error after installing Civi Entity module

Part of the process that CiviCRM Entity uses to integrate is to read metadata on the civicrm API entities, and also for fields with options lists, it fetches those with an API call... This API call : ...
jackrabbithanna's user avatar
3 votes
Accepted

List all members by zipcode or city

You can build this with CiviCRM Entity https://www.drupal.org/project/civicrm_entity Enable the "CiviCRM Contact" entity type at the settings page, /admin/structure/civicrm-entity/settings ...
jackrabbithanna's user avatar
3 votes

List all members by zipcode or city

A CMS-agnostic way to accomplish this is with SearchKit. It ships with CiviCRM 5.42 but is disabled. Enable it at Administer menu » System Settings » Extensions. You'll also want to enable the ...
Jon G - Megaphone Tech's user avatar
3 votes

Drupal 9 View unable to display logged in User

As per the comment by jackrabbithanna, the solution in this case is to give the civicrm database user SELECT rights on the Drupal Database. I think it is an odd solution given the way I thought Views ...
ChumKui's user avatar
  • 737
3 votes

Api get all option within sub entity

The best way to learn how to use the API is the Api Explorer which is built into CiviCRM (find it in the Support -> Developer menu. It will write the following code for you: $optionValues = \Civi\...
Pradeep Nayak's user avatar
3 votes

Retrieving Contact information with API4 Inside the module

Try changing \Civi\Api4\Contact::get(TRUE) to \Civi\Api4\Contact::get(FALSE) The TRUE/FALSE parameter is a short-hand for checkPermissions. The default in Api4 is that permissions are checked but you ...
Aidan's user avatar
  • 13.4k

Only top scored, non community-wiki answers of a minimum length are eligible