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) »
  • Hook for Adding to/Removing from the Contact Dashboard?
Pages: [1]

Author Topic: Hook for Adding to/Removing from the Contact Dashboard?  (Read 556 times)

lolas

  • I post frequently
  • ***
  • Posts: 134
  • Karma: 9
    • Freeform Solutions
  • CiviCRM version: Several
  • CMS version: Drupal
  • MySQL version: 5.1+
  • PHP version: Several
Hook for Adding to/Removing from the Contact Dashboard?
April 04, 2014, 01:28:34 pm
I thought I read somewhere that a hook existed or was going to be added for the Contact Dashboard? (civicrm/user) I can't find anything on this hook though. Am I imagining it?

For now I realize we can use civicrm_alterContent but then we have to manipulate the HTML directly which is not as nice.

I am not sure if we can use civicrm_pageRun to alter anything (server side). I have only ever used that to insert extra CSS or Javascript.
Freeform Solutions provides technology and management consulting, website and database development, and managed internet hosting solutions for not-for-profit organizations (NFPs).

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: Hook for Adding to/Removing from the Contact Dashboard?
April 10, 2014, 11:36:52 pm
There is hook civicrm_summary, and civicrm_summaryActions and civicrm_tabs to add tab(s) to the summary page?
http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_summary
http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_summaryActions
http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_tabs
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

lolas

  • I post frequently
  • ***
  • Posts: 134
  • Karma: 9
    • Freeform Solutions
  • CiviCRM version: Several
  • CMS version: Drupal
  • MySQL version: 5.1+
  • PHP version: Several
Re: Hook for Adding to/Removing from the Contact Dashboard?
April 11, 2014, 06:54:42 am
Thanks Eric,

I was planning to add info to the civicrm/user page rather than the contact summary because we want to show information to contacts who do not have access to the CiviCRM back end.
I guess I can always use civicrm_alterContent or just build a new user specific page in an extension.
Freeform Solutions provides technology and management consulting, website and database development, and managed internet hosting solutions for not-for-profit organizations (NFPs).

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: Hook for Adding to/Removing from the Contact Dashboard?
April 11, 2014, 08:46:01 am
Okay, I read too quickly and reacted to the word summary :-) There is no hook for the User I am aware of.....and yes, either the alterContent or a specific page will be required :-)
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) »
  • Hook for Adding to/Removing from the Contact Dashboard?

This forum was archived on 2017-11-26.