9 votes
Accepted

How to show civicrm toolbar in drupal also?

To answer your question, I wrote a module: https://www.drupal.org/project/civimenu The code snippet I posted below probably wouldn't work because of timing issues (by the time the block was being ...
user avatar
  • 16.1k
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 ...
user avatar
6 votes
Accepted

Drupal CiviCRM Entity in Rules: How to loop over all members of a group?

You can use the Views Rules module: https://www.drupal.org/project/views_rules This will provide a Views Loop: from the project page: "A view loop is similar to a regular Rules loop, but allows ...
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).
user avatar
  • 17.6k
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.
user avatar
  • 16.1k
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 ...
user avatar
  • 1,561
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 ...
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:
user avatar
4 votes

Workflow approach for anonymous users, or limited roles to create events

I admire the principle of not being too ambitious in building customizations, but I worry that you'd be going through far more trouble than you'd need to. You might consider just building a custom ...
user avatar
  • 7,337
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 ...
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 ...
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 + ...
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 ...
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 ...
user avatar
  • 26.9k
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 ...
user avatar
4 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/...
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:...
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) ...
user avatar
  • 1,839
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 ...
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+...
user avatar
  • 2,816
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, '...
user avatar
3 votes
Accepted

Does anyone have a recipe for Commerce / Rules / CiviCRM integration?

Exported Rules: The description of what I'm trying to do is below, and you can download (and/or pitch in) on the current versions of the Rules below at this GitHub repo. Problem Areas: In creating ...
user avatar
3 votes

Pull data from Drupal entity reference field into CiviCRM?

So my understanding of your use case is that you want to record in the back end in-kind donations related to items to be auctioned off in bundles. I assume that each item has its own valuation, and ...
user avatar
  • 6,641
3 votes

Pull data from Drupal entity reference field into CiviCRM?

This is a great question and frankly I've found it challenging to "seamlessly" integrate Drupal and Civicrm. I have successfully used the Drupal Rules module and Civicrm Entity to make Civicrm ...
user avatar
3 votes

Pull data from Drupal entity reference field into CiviCRM?

One possibility would be to use views module to create a view that displays auction package nodes, with a contextual filter for the contribution reference field. Then you provide a block display and ...
user avatar
  • 1,604
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.
user avatar
  • 10.8k
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 ...
user avatar
  • 10.8k
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 ...
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 ...
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 ...
user avatar

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