I want to add a new template part to the activity edit & view page, I have been trying number of hooks to do it but could not figure out which one best to use.
I am trying to do something similar to what is explained here https://youtu.be/lrk8X_jt0wU?list=PLjSU7YfE0E00Xv9b_VqwjDjAcFUVtR8k5&t=837 but for activity edit & view pages.
function _myactivity_civix_civicrm_summary($contactID, $content){
CRM_Core_Region::instance('page-body')->add([
'template' => 'templates/myactivity.tpl'
]);
}
Any suggestion or better approach would be great help.
Thanks in advance :)