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 Profiles (Moderator: Dave Greenberg) »
  • change columns displayed in relationships tab?
Pages: [1]

Author Topic: change columns displayed in relationships tab?  (Read 980 times)

davideps

  • I’m new here
  • *
  • Posts: 28
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3.2
change columns displayed in relationships tab?
October 16, 2011, 08:20:42 am
Hi,


I am new to CiviCRM. I believe my issue is related to profiles. I would like to change which fields are displayed under the Relationship tab of the Contacts window. Also, if possible, I would like to display different columns under the Relationship tab for Organizations than I do for Households. For Organizations, I would like to display Employee Position instead of Start & End. For households, I would like to display Nickname. Could someone explain how to do this or point me to the proper documentation?

On a slightly different topic, is it possible to change the number of characters that are stored (or displayed) in the different fields?


thank you,
-david


Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: change columns displayed in relationships tab?
October 16, 2011, 11:14:59 am

You will need to do the below via hooks, check:

http://wiki.civicrm.org/confluence/display/CRMDOC40/CiviCRM+hook+specification
http://en.flossmanuals.net/civicrm-developer-guide/

It is not possible to change the number of characters that are stored (or displayed) in the standard fields. Custom fields are set on creation (and u might be able to edit and change them)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

davideps

  • I’m new here
  • *
  • Posts: 28
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3.2
Re: change columns displayed in relationships tab?
October 16, 2011, 05:04:30 pm
Lobo, thank you.

From the link you sent me, it appears that I need to write a new module just to switch around the columns displayed under the relations tab--is that true?

There is no php file somewhere that names the columns and gives their order that I can simply edit?

-david

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: change columns displayed in relationships tab?
October 16, 2011, 05:50:57 pm

The docs tell you how to find the tpl file and php file for most / all of the civicrm pages

however using hooks is definitely the recommended and encouraged way to doing things. Hacking the php code is not a good idea, IMO

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

davideps

  • I’m new here
  • *
  • Posts: 28
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3.2
Re: change columns displayed in relationships tab?
October 16, 2011, 08:19:47 pm
Lobo,

Now I understand that there are two ways of approaching this problem. I appreciate your answer. Thank you.

-david

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • change columns displayed in relationships tab?

This forum was archived on 2017-11-26.