Views 2 Argument Handling Code with CiviCRM View

jhofer's picture

I'm looking for views argument handling code that will link a CiviCRM contact to a Drupal node. The idea is that a Civi contact has a profile page (node). The profile page (node) includes blocks that contain views of a corresponding Civi Contact.

For example. An organization by the name of "Cultural Arts Center" has a profile page (a drupal content type) titled "Cultural Arts Center". They also have a Civi Contact with a display name "Cultural Arts Center" . I want their contact info and some custom fields from Civi (ie their mission) to show on their profile page.

I have used php views argument snippets that create dynamic views blocks displaying node fields by using Drupal's taxonomy structure - but since CiviCRM doesn't integrate with Drupal's taxonomy I can't use taxonomy terms to link node and the dynamic views blocks.

The only thing I can think of is using a php snippet that checks the CiviCRM Display name against the node title - if they are identical then the profile page would include the block of the corresponding CiviCRM contact data.

Hope this makes sense? Anyone?

Fresno

Group organizers

Group events

Add to calendar

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week