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) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Is there a way to further customize the front-end contact dashboard.
Pages: [1]

Author Topic: Is there a way to further customize the front-end contact dashboard.  (Read 809 times)

RachelWright

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 3
  • CiviCRM version: 4.2.7
  • CMS version: Joomla 2.5.17
  • MySQL version: 5.5.37
  • PHP version: 5.4.26
Is there a way to further customize the front-end contact dashboard.
October 04, 2012, 10:52:21 am
Just curious if there is a way to add other things (besides the items you can turn on and off in display preferences) to the contact dashboard? Perhaps a way users can see donations to their PCP pages? I have the general idea of some ways to generate the information, but was hoping for a point in the right direction as to how to get the info on the actual dashboard...

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Is there a way to further customize the front-end contact dashboard.
October 04, 2012, 12:20:42 pm

You can probably do the below via hooks.

But for smething like the below, i suspect it is of general enough use that we would be open to adding it to the core code base :)

wanna do the needful and submit a patch that makes the required changes. ping us on irc if u need help

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

RachelWright

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 3
  • CiviCRM version: 4.2.7
  • CMS version: Joomla 2.5.17
  • MySQL version: 5.5.37
  • PHP version: 5.4.26
Re: Is there a way to further customize the front-end contact dashboard.
October 11, 2012, 10:48:35 am
Thank you, I am now learning how to use hooks in Joomla, I've downloaded the sample plugin (tab rename) and that works no problem, but can not get the dashboard hook sample to work.

Code: [Select]
function joomla_civicrm_dashboard( $contactID, &$contentPlacement ) {
    // REPLACE Activity Listing with custom content
    $contentPlacement = 3;
    return array( 'Custom Content' => "Here is some custom content: $contactID",
                  'Custom Table' => "
<table>
<tr><th>Contact Name</th><th>Date</th></tr>
<tr><td>Foo</td><td>Bar</td></tr>
<tr><td>Goo</td><td>Tar</td></tr>
</table>
",
                  );
}


Can you tell me what I am missing? )I placed the above code in the same php file of the tab plugin, for testing purposes, so I don't think I have the plugin set up incorrectly.)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Is there a way to further customize the front-end contact dashboard.

This forum was archived on 2017-11-26.