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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Showing extra info in CCK field of type CivCRM Contact
Pages: [1]

Author Topic: Showing extra info in CCK field of type CivCRM Contact  (Read 493 times)

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Showing extra info in CCK field of type CivCRM Contact
April 21, 2013, 03:46:32 pm
I am currently using the CCK-CiviCRM integration and have some custom content types that have a field of type CiviCRM Contact (Individual). This is working as expected. However when the end-users are creating a new node and are typing in the contact field, the autocomplete/suggested matches is only showing the sort name of the individual.  This is confusing for the end-user as there are many common names in the database, such as 3 John Smiths.   

I would like to display extra data to the auto-complet/suggested matches, such as city, state and email address.  What would be the preferred approach to doing this? Either quick-and dirty or an elegant approach that would be safe during upgrades.    I have been investigating the code in the cck module that is part of CiviCRM, but I am not sure which function to start changing, or even if this is the best approach.

(I am running CiviCRM version 4.2.7 under Drupal 6)

 
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Showing extra info in CCK field of type CivCRM Contact

This forum was archived on 2017-11-26.