1

I was told to integrate Views 3 with Drupal 7 following this tutorial:

https://wiki.civicrm.org/confluence/display/CRMDOC/Views3+Integration

However, I do not have this:

You should see a page with output that begins with: "$databases['default']['default']['prefix']= array("

So I'd like to know if that tutorial doesn't apply anymore or what I need to do to get that PHP config to show.

This is a fresh installation so I'm using latest versions of Drupal and CiviCRM

Thanks!

2

If you don't see that screen in Karin's answer, here are some reasons why you might not (source):

  • You aren't using Drupal at all! Views and its integration won't work on your site at all then 🙂
  • You have CiviCRM and Drupal in the same database. With a shared DB, no aliasing is required in settings.php, it'll work out of the box.
  • You don't have Views enabled in Drupal yet. The screen won't show up until Views is enabled.
  • How can I know that this config succeeded? – JorgeeFG Apr 23 '17 at 21:23
  • Make a view that shows some data 😀 – Chris Burgess Apr 23 '17 at 21:24
2

Navigate to CiviCRM -> Administer -> System Settings -> CMS Database Integration:

enter image description here

Copy all of that... into the Drupal settings.php file for your site!

  • Yes, I'm right there! But I don't have any content after Save and Cancel buttons – JorgeeFG Apr 23 '17 at 21:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.