I appologize if this question has nothing to do with this module... the funtion of this module seems to be the closest solution to my issue so I'm going to give this a try:

I'm looking for a module or views argument handling code (php snippet) 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

fathershawn’s picture

What version of Civi are you using?

jhofer’s picture

Civi 3.4.3

fathershawn’s picture

Have you tried to use the bundled CiviCRM CCK Contact Reference module?

jhofer’s picture

I did... unfortunately it only references individual contacts - not Organizational which is what I need to link... thanks for giving it some thought though! any other ideas?

jhofer’s picture

The post from Lobo on the CiviCRM Forum states that the Contact Reference field is restricted to individual:
http://forum.civicrm.org/index.php/topic,10596.msg45496.html#msg45496

This was back in 2009 so I'm looking to see if this has changed. Perhaps with a newer version of Civi.

jhofer’s picture

There are ways to customize the Contact Reference Field though...
http://civicrm.org/blogs/xavier/how-customise-contact-reference-custom-f...

Unfortunately this is beyond my abilities at this moment!

fathershawn’s picture

I've not installed or used the Contact Reference Field module. I did glance at the code and it looks like it expects the kinds of options that you are describing. I'd suggest that you post at in the Drupal section of the CiviCRM forums: http://forum.civicrm.org/index.php/board,6.0.html and describe the setup that you would like to effect.

fathershawn’s picture

Status: Active » Closed (works as designed)