CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • How to create views in Drupal using CiviCRM group of contacts
Pages: [1]

Author Topic: How to create views in Drupal using CiviCRM group of contacts  (Read 3722 times)

maarten

  • Guest
How to create views in Drupal using CiviCRM group of contacts
November 30, 2007, 09:07:21 am
(---I'm new to CiviCRM and pretty new to Drupal ---)

I have a list of counselors (in a group in CiviCRM) that my clients can contact. I want to list them on my Drupal website.

  • How do I show them in a Drupal view
  • How do I show them on a map (eg http://www.compartners.org/valley )
  • What is the easiest/default/normal/preferred CiviCRM way to show a list of contacts in Drupal

I think I'm going to love using CiviCRM with Drupal.

MacRonin

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 14
Re: How to create views in Drupal using CiviCRM group of contacts
November 30, 2007, 09:34:43 am
you might want to check out CiviNode And Civinode CCK

http://drupal.org/project/civinode

CiviNode is a module and API that exposes CiviCRM contacts, groups, and other CiviCRM object types to Drupal as nodes. It's designed to make CiviCRM easier to use and integrate with all of the Drupal tools and techniques you've come to know and love. For example, once you've mirrored a CiviCRM contact into Drupal, you will be able to:

* Catagorize it with taxonomies
* Attach event or location information
* Track what's happening with the contact with a work-flow
* Control the way it displays by theming it.

The project will also include:

* An "easy-to-use" wrapper API for handling common programming tasks that modules using CiviCRM can use.
* Support for CCK: you can add a "contact" or a CiviCRM group to your new content types, with support for formatters.
* Support for Views: you can display contact fields (e.g., 'first_name', 'sort_name', 'city', 'phone'), or display a contact using CiviCRM profiles.


maarten

  • Guest
Re: How to create views in Drupal using CiviCRM group of contacts
November 30, 2007, 02:37:43 pm
I am using the civinode module now. So far:

- I am able to create a CCK field (staffmember) in a new node type (staffmember-info).
- When going to site.org/index.php?q=node/add/staffmember-info I can see a nice dropdown list in my staffmember field. (the source for the field is the CiviCRM staffmember group)

But! I don't want to add every contact manually. How do I generate all the nodes with all my staff members?

(By the way, the auto complete widget doesn't work, do I have to change settings somewhere in order for it to work?)

msn

  • I post frequently
  • ***
  • Posts: 152
  • Karma: 6
  • Please talk to the other site
Re: How to create views in Drupal using CiviCRM group of contacts
November 30, 2007, 06:03:30 pm
I think this is more a Drupal issue for asking in the Drupal community (drupal forum).
MacRonin has put you in a good direction. The issue you ask is heavy for a new Drupal/CiviCRM developer. My advise: read/learn more about the basics of Drupal, CiviCRM and Drupal’s cck and views. And try things on a test environment.



Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: How to create views in Drupal using CiviCRM group of contacts
November 30, 2007, 06:20:19 pm
Actually - the easiest way to do this is via CiviCRM Profiles (you don't need CCK / Views for listings or mapping).

The Compartners (http://www.compartners.org/valley) site u referenced uses a Profiles with various query string parameters to show the interactive map, the listings etc. (the map image on that first page is a static .gif - but all the links point to CiviCRM generated pages). Check out these links from that page:
Map: http://www.compartners.org/civicrm/profile?reset=1&gid=8&force=1&map=1
Search: http://www.compartners.org/civicrm/profile?reset=1&gid=8

So - I would suggest you read the documentation on Profiles thoroughly, starting here:
http://wiki.civicrm.org/confluence/display/CRMDOC/Profiles+Admin

... and particularly the "Linking Profiles" info here:
http://wiki.civicrm.org/confluence/display/CRMDOC/Linking+Profiles

... and the "Limit Listings to Group" selection under Profile >> Settings >> Advanced Settings ... which allows you to only expose contacts in a particular group to the profile listings, search, map etc.

You'll also want to configure a Mapping Provider in CiviCRM if you haven't already.
Protect your investment in CiviCRM by  becoming a Member!

msn

  • I post frequently
  • ***
  • Posts: 152
  • Karma: 6
  • Please talk to the other site
Re: How to create views in Drupal using CiviCRM group of contacts
November 30, 2007, 06:46:04 pm
Thanks, I am learning also!

I always made maps (events, users)  with drupal, I will test the civicrm function.

maarten

  • Guest
Re: How to create views in Drupal using CiviCRM group of contacts
December 03, 2007, 03:30:22 pm
I have read all the information Dave suggested. My question on how to show a listing of contacts has been answered. There is a remaining question though:

HOW DO I CUSTOMIZE THIS LISTING OF CONTACTS?
  • How do I make the list look less CiviCRM like.
  • I would like to add a picture of the contacts in the list

(This poses another question: Can I add an image to my contacts?)

Here is an example of what I want the list to look like (this is the old, hopeless website that I'm transforming into a Drupal/CiviCRM site):
http://www.healinghouse.org/HHNPeople.htm

geilhufe

  • I post frequently
  • ***
  • Posts: 293
  • Karma: 33
    • Social Source Software
Re: How to create views in Drupal using CiviCRM group of contacts
December 05, 2007, 02:54:34 pm
That would be a custom template. Not sure where in the docs that is, but here is the spec for the Kabissa project:
http://wiki.civicrm.org/confluence/display/CRM/Kabissa+Deployment+Guide#KabissaDeploymentGuide-ExistingCustomTemplates
Drupal and CiviCRM consulting, strategy and configuration
http://www.social-source.com/

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: How to create views in Drupal using CiviCRM group of contacts
December 05, 2007, 03:13:12 pm
this might help: http://wiki.civicrm.org/confluence/display/CRMDOC/Customize+Built-in+and+Profile+Screens

kurund
Found this reply helpful? Support CiviCRM

dev

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal
  • MySQL version: 5.5.8
  • PHP version: 5.3.5
Re: How to create views in Drupal using CiviCRM group of contacts
November 20, 2012, 03:55:10 am
Do you have any idea , how we map drupal  cck group nodes in civicrm add case/individual.organization.

Mean when adding new case , we need to select group (cck type) , which can be done by civi crm group integration.

We also need to show all the nodes for cck nodes

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: How to create views in Drupal using CiviCRM group of contacts
November 21, 2012, 03:14:04 am
fyi - this thread was last posted to in 2007 and things have moved on quite a bit from then so the info below is probably out of date.  you might want to start a new thread.

michael
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • How to create views in Drupal using CiviCRM group of contacts

This forum was archived on 2017-11-26.