Hello
I want to put Google linkedIn & Facebook icon beside my leads name .
how can i achieve this upgrade safely ?
Hello
I want to put Google linkedIn & Facebook icon beside my leads name .
how can i achieve this upgrade safely ?
Create one after_ui_frame Logichook file in below path.
custom/Extension/modules/Leads/Ext/LogicHooks/logichook.php
<?php
if (!isset($hook_array) || !is_array($hook_array)) {
$hook_array = array();
}
if (!isset($hook_array['after_ui_frame']) || !is_array($hook_array['after_ui_frame'])) {
$hook_array['after_ui_frame'] = array();
}
$hook_array['after_ui_frame'][] = Array(100, 'Icon ', 'custom/modules/Leads/icon.php','IconHookClass', 'IconFunction');
icon.php
<?php
if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
class IconHookClass
{
function IconFunction($event, $arguments)
{
if ($GLOBALS['action'] == 'DetailView')
{
echo "<script type='text/javascript' src='custom/modules/Leads/icon.js'></script>";
}
}
}
icon.js
$(document).ready(function ($){
$("#full_name").append('<img class="gimg" src="custom/themes/default/images/google.gif" style="margin-left: 6px;"></img>');
});
It should helps you
Hii Bhavin Patel
Thanks for your reply i will check and revert you.
Hii Bhavin Patel
Thank you it is working fine.