CiviCRM Forums
News: You can learn more about CiviCRM from our new free book: Understanding CiviCRM. Also Check the CiviCRM Blog for updated information on CiviCRM
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 02, 2010, 08:49:31 am


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Add button on custom data tab with contact?  (Read 310 times)
Erik Hommel
I post frequently
***

Karma: 21
Offline Offline

CiviCRM: 3.2.alpha5
CMS: Drupal-6.16
MySQL: 5.1.30
PHP: 5.2.8

Posts: 277



View Profile WWW
« on: 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?
Logged

Erik Hommel (EE-atWork, http://www.ee-atwork.nl)
Erik Hommel
I post frequently
***

Karma: 21
Offline Offline

CiviCRM: 3.2.alpha5
CMS: Drupal-6.16
MySQL: 5.1.30
PHP: 5.2.8

Posts: 277



View Profile WWW
« Reply #1 on: 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  Tongue
Logged

Erik Hommel (EE-atWork, http://www.ee-atwork.nl)
xavier
Forum Godess / God
I live on this forum
*****

Karma: 58
Offline Offline

Posts: 1272


View Profile WWW
« Reply #2 on: March 11, 2010, 05:27:56 am »

You could also have modified the template...

X+
Logged
Erik Hommel
I post frequently
***

Karma: 21
Offline Offline

CiviCRM: 3.2.alpha5
CMS: Drupal-6.16
MySQL: 5.1.30
PHP: 5.2.8

Posts: 277



View Profile WWW
« Reply #3 on: 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  Grin
Logged

Erik Hommel (EE-atWork, http://www.ee-atwork.nl)
Erik Hommel
I post frequently
***

Karma: 21
Offline Offline

CiviCRM: 3.2.alpha5
CMS: Drupal-6.16
MySQL: 5.1.30
PHP: 5.2.8

Posts: 277



View Profile WWW
« Reply #4 on: March 11, 2010, 06:27:54 am »

And also....I have a hard time finding the right template  Huh
Logged

Erik Hommel (EE-atWork, http://www.ee-atwork.nl)
xavier
Forum Godess / God
I live on this forum
*****

Karma: 58
Offline Offline

Posts: 1272


View Profile WWW
« Reply #5 on: 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+
Logged
Erik Hommel
I post frequently
***

Karma: 21
Offline Offline

CiviCRM: 3.2.alpha5
CMS: Drupal-6.16
MySQL: 5.1.30
PHP: 5.2.8

Posts: 277



View Profile WWW
« Reply #6 on: 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!
Logged

Erik Hommel (EE-atWork, http://www.ee-atwork.nl)
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM