Views 2 Argument Handling Code with CiviCRM View

Events happening in the community are now at Drupal community events on www.drupal.org.
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?

Comments

Views 2 Argument Handling Code with CiviCRM View

ZenLax's picture

jhofer - I know this post was a long while back, but do you remember if you were able to solve this? I am trying to write a custom handler to do something similar, though for an OG node rather than user profile.

Fresno

Group organizers

Group notifications

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