Answers.Body: <p>By contact dashboard, do you mean the contact summary? In that case, there is a hook for that:</p>
  
  <p><a href="https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_summary" rel="nofollow">https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_summary</a></p>
  
  <p>Can you try to see if it alters the page you want?</p>
  
  <p>Otherwise and more generally, they are two "catch all" hooks for the ui, one for page
  <a href="https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_pageRun" rel="nofollow">https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_pageRun</a>
  (likely the one you need) and one for form<br>
  <a href="https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_alterContent" rel="nofollow">https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_alterContent</a> </p>
  
  <p>With these two, you should be able to modify pretty much any content generated by civi</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-13T15:31:19.670Z
Answers.Text: No it is not the contact summary, it is the contact dashboard at site/civicrm/user
  
  I was able to find the page using pageRun (as I mentioned in my post) but that seems like an ugly hack because it parses the code every single page that gets called and it also does not influence the actual page that gets generated, it can only insert content outside the "content div"
Answers.UserDisplayName: Guru Evi
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-11T10:00:06.990Z
Answers.LastActivityDate: 2016-03-11T10:00:06.990Z
Answers.UserDisplayName: Xavier
Body: <p>I'm writing a custom data extension and I would like to show some things on the Contact Dashboard (not the 'full' dashboard).</p>
  
  <p>I see the hook for the regular Dashboard and Dashlets, but nothing to output anything on the UserDashBoard</p>
  
  <p>CRM/Contact/UserDashboard.php seems to eventually call a lot of hardcoded functions for components.</p>
  
  <p>I've gotten to hook_civicrm_pageRun where I can add stuff by doing this: <code>if ($page-&gt;getVar('_name') == "CRM_Contact_Page_View_UserDashBoard")</code> and then simply echo-ing stuff but that doesn't seem to be the 'correct' way of doing things, the CSS doesn't get applied correctly etc.</p>
  
  <p>I've also tried to create a page (using civix generate:page) and then adding UserDashboard.php and tpl files similar to how CRM/Events does it but that doesn't seem to get called at all. I see in Core Components a function named getDashboardObject but there is virtually no documentation, no comments or a way of calling it from within an extension.</p>
  
  <p>I'm trying to affect the User Dashboard which gets generated at <a href="http://site/civicrm/user" rel="nofollow">http://site/civicrm/user</a></p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-03-11T13:49:37.397Z
Comments.Text: Please clarify exactly which screen in Civi you want to affect.
Comments.UserDisplayName: Coleman
Tags: <extension><user-dashboard>
Title: Custom extension, what hook to use for UserDashBoard
ThreadText: # Custom extension, what hook to use for UserDashBoard
  
  (Asked by: username_0 on 2016-03-11)
  
  I'm writing a custom data extension and I would like to show some things on the Contact Dashboard (not the 'full' dashboard).
  
  I see the hook for the regular Dashboard and Dashlets, but nothing to output anything on the UserDashBoard
  
  CRM/Contact/UserDashboard.php seems to eventually call a lot of hardcoded functions for components.
  
  I've gotten to hook\_civicrm\_pageRun where I can add stuff by doing this: `if ($page->getVar('_name') == "CRM_Contact_Page_View_UserDashBoard")` and then simply echo-ing stuff but that doesn't seem to be the 'correct' way of doing things, the CSS doesn't get applied correctly etc.
  
  I've also tried to create a page (using civix generate:page) and then adding UserDashboard.php and tpl files similar to how CRM/Events does it but that doesn't seem to get called at all. I see in Core Components a function named getDashboardObject but there is virtually no documentation, no comments or a way of calling it from within an extension.
  
  I'm trying to affect the User Dashboard which gets generated at <http://site/civicrm/user>
  
  **Tags:** extension, user-dashboard
  
  > **Comments:**
  > **username_1**: Please clarify exactly which screen in Civi you want to affect.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2016-03-11. Score: 2
  
  By contact dashboard, do you mean the contact summary? In that case, there is a hook for that:
  
  <https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_summary>
  
  Can you try to see if it alters the page you want?
  
  Otherwise and more generally, they are two "catch all" hooks for the ui, one for page
  <https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_pageRun>
  (likely the one you need) and one for form  
  <https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_alterContent>
  
  With these two, you should be able to modify pretty much any content generated by civi
  
  > **Comments:**
  > **username_0**: No it is not the contact summary, it is the contact dashboard at site/civicrm/user  I was able to find the page using pageRun (as I mentioned in my post) but that seems like an ugly hack because it parses the code every single page that gets called and it also does not influence the actual page that gets generated, it can only insert content outside the "content div"  
  
  ---
  
  