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 »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Views Relationship - Postcode > CCK CiviContact >> CiviContact Details.
Pages: [1]

Author Topic: Views Relationship - Postcode > CCK CiviContact >> CiviContact Details.  (Read 654 times)

SweetTooth

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 1
  • CiviCRM version: 4.1
  • CMS version: Drupal 6.20
  • MySQL version: 5.1.54
  • PHP version: 5.2.17
Views Relationship - Postcode > CCK CiviContact >> CiviContact Details.
October 12, 2011, 08:56:36 am
OK, I can't work this one, looks like I need some code somewhere to have a Views relationship that I otherwise wouldn't have.

Here's what I'm trying to achieve.

1) I have uploaded all the local authorities in my country to civicrm and have downloaded all of their contact Ids.
2) I have generated a csv file of all postcodes in my country, matched to civicrm contact ids for each local authority.
3) I have created a node type called "Postcode" in Drupal, with a CiviCRM contact CCK field.
4) You guessed it, all the postcodes and civicrm contact id's have been uploaded to Drupal.
5) Now, I have a simple view in which I can type in a postcode and get back just 1 field, the CiviCRM contact URL, which the user can click on.

*BUT* I'd like something a bit more complex, you know, something that can display the details of local authority such as contact details, website etc....

Any takers? Thanks!

« Last Edit: October 12, 2011, 09:01:09 am by SweetTooth »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Views Relationship - Postcode > CCK CiviContact >> CiviContact Details.

This forum was archived on 2017-11-26.