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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Show Middle_name in searchbox (upper left)
Pages: [1]

Author Topic: Show Middle_name in searchbox (upper left)  (Read 423 times)

markjohan

  • I post occasionally
  • **
  • Posts: 102
  • Karma: 0
  • ..
  • CiviCRM version: 4.4.2
  • CMS version: Wordpress 3.6.1
  • MySQL version: 5.1.66-0+squeeze1
  • PHP version: 5.3.27
Show Middle_name in searchbox (upper left)
November 28, 2013, 11:29:22 pm
Hello,

I want to display the middle_name in the search box row (shows 10).

I changed this into:
{contact.last_name}{, }{contact.first_name}{ }{contact.middle_name}

Nothing happens. Can someone tell me how to fix this?

Thanks.

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Show Middle_name in searchbox (upper left)
November 28, 2013, 11:59:06 pm
What version of CiviCRM are you using? For me changing the 'individual sort name format' in the Display Preferences worked?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

markjohan

  • I post occasionally
  • **
  • Posts: 102
  • Karma: 0
  • ..
  • CiviCRM version: 4.4.2
  • CMS version: Wordpress 3.6.1
  • MySQL version: 5.1.66-0+squeeze1
  • PHP version: 5.3.27
Re: Show Middle_name in searchbox (upper left)
November 29, 2013, 12:12:02 am
Hello Erik,

Thanks for your reply. I am working with version 4.4.2
This is now in my induvidual sort name format: {contact.last_name}{, }{contact.first_name}{, }{contact.middle_name}

It is not working.. I wat to see the middle name at the Find Contacts box upperleft.

Thanks

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Show Middle_name in searchbox (upper left)
November 29, 2013, 12:21:40 am
I will test myself, but I think this does work. However, in your case the display_name and sort_name in the table have already been set. So you need to redo that and I think there is a scheduled job for that. Let me check....
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Show Middle_name in searchbox (upper left)
November 29, 2013, 12:27:15 am
yes, that does the trick. So once you have set the sort_name like you did, the sort_name in the database has to be reset. This is done when a name changes, so if you only have a small number of contacts you would need to 'update' their names with the same values. If not, you either create a script or change it in the database. Unfortunately there is no scheduled job for this yet. Are you able to contribute one?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

markjohan

  • I post occasionally
  • **
  • Posts: 102
  • Karma: 0
  • ..
  • CiviCRM version: 4.4.2
  • CMS version: Wordpress 3.6.1
  • MySQL version: 5.1.66-0+squeeze1
  • PHP version: 5.3.27
Re: Show Middle_name in searchbox (upper left)
November 29, 2013, 01:00:06 am
Hello Erik,

Thanks! thats it! Perfect.

It is about 2600 contacts, but i shall see how i do this. Thanks for now.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Show Middle_name in searchbox (upper left)

This forum was archived on 2017-11-26.