<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.5848" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2>Hi there,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>is there any reason why it's impossible to add an 
custom link under campaigns?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I created a small script to add a 
link:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;?php<BR>&nbsp; 
include_once('vtlib/Vtiger/Module.php');</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; $mod = 
Vtiger_Module::getInstance('Campaigns');<BR>&nbsp; 
$mod-&gt;addLink('DETAILVIEW', 'This is a Testlink!', 
'test.php?src_record=$RECORD$');</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Link is added in the 
vtiger_links-table</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>But when I open the capaign-site I could not see 
it!<BR>So I compared DetailView.php under modules/Campaigns with DetailView.php 
under modules/Accounts <BR>und noticed that folliwing lines of code are not in 
DetailView.php under modules/Campaigns:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>include_once('vtlib/Vtiger/Link.php');<BR>$customlink_params = 
Array('MODULE'=&gt;$currentModule, 'RECORD'=&gt;$focus-&gt;id, 
'ACTION'=&gt;vtlib_purify($_REQUEST['action']));<BR>$smarty-&gt;assign('CUSTOM_LINKS', 
Vtiger_Link::getAllByType(getTabid($currentModule), 
Array('DETAILVIEWBASIC','DETAILVIEW'), $customli<BR>nk_params));</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Best regards,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Stefan</FONT></DIV></BODY></HTML>