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 »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Add button on custom data tab with contact?
Pages: [1]

Author Topic: Add button on custom data tab with contact?  (Read 1959 times)

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
Add button on custom data tab with contact?
March 11, 2010, 03:54:28 am
Hi all,
a little help to get me on my way. I have added a custom data group, which show up as a tab on my contact summary. Fine! Now I want to add a button or link to the specific tab so I can jump to an external URL. I have tried to establish this with the civicrm_links hook, but that adds a link to the main summary page, and I can not yet get my head around the structure that is used to build up the tabs.
I thought I could use the civicrm_tabs hook, but that does not seem to do the required stuff either?
Can you give me a little push?
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: Add button on custom data tab with contact?
March 11, 2010, 04:25:27 am
Managed to get there in the end, using the civicrm_tabs hook......!!! can I now applaud for myself  :P
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

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 button on custom data tab with contact?
March 11, 2010, 05:27:56 am
You could also have modified the template...

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

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: Add button on custom data tab with contact?
March 11, 2010, 05:42:38 am
I know.....but I probably want to do much more once I understand the engine. So I thought I'll give it a try in this way. Once you show me stuff in Brussels I want to use it  ;D
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: Add button on custom data tab with contact?
March 11, 2010, 06:27:54 am
And also....I have a hard time finding the right template  ???
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

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 button on custom data tab with contact?
March 11, 2010, 06:59:12 am
The usual trick: view source and search for ".tpl"

For an ajaxified bit, open firebug, you'll see what "page" it opens. You have the option to open it in a new tab, so you can do the view source.

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

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: Add button on custom data tab with contact?
March 11, 2010, 09:18:00 am
Thanks Xavier, I was aware of the tpl-trick, but that did not help me in the case of the Contact Summary, and then getting to one of the tabs. I'll have a go with firebug!
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Add button on custom data tab with contact?

This forum was archived on 2017-11-26.