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) »
  • How to add a new tab display a particular relationship on contact summary page
Pages: [1]

Author Topic: How to add a new tab display a particular relationship on contact summary page  (Read 2037 times)

aeszq

  • I post occasionally
  • **
  • Posts: 53
  • Karma: 0
How to add a new tab display a particular relationship on contact summary page
January 19, 2010, 06:10:03 pm
Hi Guys,

I need to add a new tab on the contact's summary page. By clicking this tab, the page will show the records related to a specific relationship (IE. employee of).

I can do this in the search function which takes 3,4 minutes (which is too slow - there are only 30 contacts in the query with around 40,000 contacts in total) but I need this to appear on a tab for the contact. Can anyway let me know how I can do this?

Cheers
George.

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: How to add a new tab display a particular relationship on contact summary page
January 19, 2010, 07:55:34 pm

you can do this via: civicrm_hook_tabs, check:

http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+hook+specification#CiviCRMhookspecification-hookcivicrmtabs

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

aeszq

  • I post occasionally
  • **
  • Posts: 53
  • Karma: 0
Re: How to add a new tab display a particular relationship on contact summary page
January 20, 2010, 08:07:30 pm
Thanks LOBO  :)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • How to add a new tab display a particular relationship on contact summary page

This forum was archived on 2017-11-26.