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 »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Customizing the Relationship Table
Pages: [1]

Author Topic: Customizing the Relationship Table  (Read 261 times)

werner

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
  • CiviCRM version: 4.5
  • CMS version: Drupal 6
  • MySQL version: mySQL 5
  • PHP version: php5
Customizing the Relationship Table
March 18, 2015, 02:58:25 am
Hello,

how can I add and delete columns in the relationshop tables?

I tried it with changing civi_customtmpl\CRM\Contact\Page\View\RelationshipSelector.tpl but that didn't work.
What I tried was to delete the 2 rows:
     <th class='crm-contact-relationship-start_date'>{ts}Start{/ts}</th>
         {sClass: 'crm-contact-relationship-start_date'},

but that was not working (the table header was working, but the data was still there)

thanks for any help
werner

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Customizing the Relationship Table
March 18, 2015, 09:53:19 am
Unfortunately I think you'll also need to modify the Ajax function which populates the table in CRM_Contact_Page_AJAX::getContactRelationships

Does not look like there's a way to use a hook to modify this method - but maybe I'm not seeing how you could use pageRun() hook ???

http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_pageRun

Otherwise seems like a hard to maintain customization :-(
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Customizing the Relationship Table

This forum was archived on 2017-11-26.