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) »
  • Adding Job Title as a column to the relationships tab? How to?
Pages: [1]

Author Topic: Adding Job Title as a column to the relationships tab? How to?  (Read 720 times)

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Adding Job Title as a column to the relationships tab? How to?
December 28, 2012, 05:07:50 pm
Hi, I found templates/CRM/Contact/Page/View/Relationship.tpl but I can't find the .php file with which generates the smarty variables so I can add "job title" as a column. 

Can someone please point me in the right direction real quick?  I wish to add "Job Title" as a column right after the Sort Name of the related contact.

Thanks!
Try CiviTeacher: the online video tutorial CiviCRM learning library.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Adding Job Title as a column to the relationships tab? How to?
December 29, 2012, 02:41:44 am
Hi,

add a {debug} on the template, pretty sure the job_title is already assigned (but not displayed).
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Adding Job Title as a column to the relationships tab? How to?
January 01, 2013, 07:06:59 pm
Found it.  Thanks X.

templates/CRM/Contact/Page/View/Relationship.tpl

Code: [Select]
~ line 54: + <th>{ts}Job Title{/ts}</th>
~ line 93: + <td>{$rel.job_title}</td>
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Adding Job Title as a column to the relationships tab? How to?

This forum was archived on 2017-11-26.