Book Image

CiviCRM Cookbook

Book Image

CiviCRM Cookbook

Overview of this book

CiviCRM is a web-based, open source, Constituent Relationship Management (CRM) software geared toward meeting the needs of non-profit and other civic-sector organizations.Organizations realize their mission via CiviCRM through contact management, fundraising, event management, member management, mass e-mail marketing, peer-to-peer campaigns, case management, and much more.CiviCRM is localized in over 20 languages including: Chinese (Taiwan, China), Dutch, English (Australia, Canada, U.S., UK), French (France, Canada), German, Italian, Japanese, Russian, and Swedish.CiviCRM Cookbook will enhance your CiviCRM skills. It has recipes to help you use CiviCRM more efficiently, integrate it with CMSs, and also develop CiviCRM.This book begins with recipes that help save time and effort with CiviCRM. This is followed by recipes for organizing data more efficiently and managing profiles.Then you will learn authentication and authorization and managing communication with contacts.Then you will be guided on using the searching feature and preparing reports. We will then talk about integrating Drupal and CiviCRM. You will also be taught to manage events effectively. Finally, learn about CiviCampaign, Civimember, and developing CiviCRM.
Table of Contents (19 chapters)
CiviCRM Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Enabling Drupal Views


Sometimes it is convenient to display CiviCRM data through Drupal. For example, you might want to display a list of contacts without giving the user access to CiviCRM. You might also want to combine data from CiviCRM with data from Drupal. For example, you have collected custom data about your contacts stored in CiviCRM that you want to display on the Drupal user page.

How to do it…

The key to integrating CiviCRM data is to install the Drupal Views module and to give Drupal access to the CiviCRM database tables.

  1. Download the Drupal Views module from http://drupal.org/project/views.

  2. Install and enable the module in the normal way.

  3. Navigate to Administer | System Settings | CMS Database integration. Here you will see a page of code that you need to put into the Drupal settings.php file.

    We have shortened this table for the illustration.

  4. Copy the code.

  5. Navigate to sites/default/settings.php. You may have to change permissions on the default directory and on the settings.php...