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) »
  • add a tab which displays multiple custom data groups on the contact view page
Pages: [1]

Author Topic: add a tab which displays multiple custom data groups on the contact view page  (Read 2637 times)

aeszq

  • I post occasionally
  • **
  • Posts: 53
  • Karma: 0
add a tab which displays multiple custom data groups on the contact view page
December 07, 2009, 06:31:01 pm
Hi guys,

I want to add a tab to the view contact page.
There will be contact summary (same as the content in default summary tab) and a few custom data groups displayed within this tab.
Those custom data groups include multiple records groups and membership custom data groups.

Do you guys have any solutions?

Cheers,
George.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: add a tab which displays multiple custom data groups on the contact view page
December 07, 2009, 09:04:06 pm
George:

I would suggest to should use Tab Hook in CiviCRM.

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

HTh

Kurund
Found this reply helpful? Support CiviCRM

aeszq

  • I post occasionally
  • **
  • Posts: 53
  • Karma: 0
Re: add a tab which displays multiple custom data groups on the contact view page
December 07, 2009, 10:33:52 pm
Thanks Kurund,
Unfortunately the Tab Hook appears to only allow for 1 URL.

What I require is the ability to have multiple data groups on the one 'tab'. For example, I want to have 'basic contact details' in a 'block' and also a list of membership transactions in another 'Block' under the one tab.

I would have imagined this has come up a few times but I have not been able to find a solution.

Can you think of anything that resolve this issue?

George.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: add a tab which displays multiple custom data groups on the contact view page
December 07, 2009, 10:46:36 pm
Quote
Unfortunately the Tab Hook appears to only allow for 1 URL.

I am not sure what you mean?  You can add 'n' extra tabs using this hook.

Check http://svn.civicrm.org/civicrm/branches/v3.0/drupal/civitest.module.sample

Kurund
Found this reply helpful? Support CiviCRM

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: add a tab which displays multiple custom data groups on the contact view page
December 07, 2009, 10:53:20 pm
Hi,

Why don't you add it directly in the summary tab?

You can fetch additional content and display it in any existing template (eg a tab) using the {crmAPI} tag.

http://wiki.civicrm.org/confluence/display/CRMDOC/Smarty+interface

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

aeszq

  • I post occasionally
  • **
  • Posts: 53
  • Karma: 0
Re: add a tab which displays multiple custom data groups on the contact view page
December 09, 2009, 04:26:36 pm
Thanks for help, guys. I need some time to see what is the best solution. I'm new to php and civicrm&drupal.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • add a tab which displays multiple custom data groups on the contact view page

This forum was archived on 2017-11-26.