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

Creating a dynamic relationship report using Drupal Views


There are some limitations to the CiviCRM searching and reporting. For example, you might have a set of organizations that are tagged "Not For Profit" and you want to list all the employees of those organizations, grouped by each organization.

Such a search or report is not possible in CiviCRM without customization.

How to do it…

We will use the power of Drupal Views to create a relationship report. We will also expose the tag and relationship filter so that our report is dynamic.

  1. In Drupal, navigate to Structure | Views and add a view. Call it Relationship and Tag report.

  2. Set Show to CiviCRM contacts.

  3. Click on Continue and Edit to continue and edit the view.

  4. Set the view to display 100 items, paged.

  5. Remove the CiviCRM Contact ID field.

  6. Add the CiviCRM Contact: Display Name field. The view is now showing a list of contact display names.

  7. Add a relationship. Select CiviCRM Relationships: Contact ID A as shown in the following screenshot:

  8. Select...