Hi Stefan,<br><br>Thanks for identifying the issue. Would be good if you can report such issues notices, on trac.<br><br><div><span class="gmail_quote">On 8/26/09, <b class="gmail_sendername">Paproth, Stefan</b> <<a href="mailto:paproth@4com.de">paproth@4com.de</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div><font face="Arial" size="2">Hi there,</font></div>
<div> </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> </div>
<div><font face="Arial" size="2">I created a small script to add a
link:</font></div>
<div> </div>
<div><font face="Arial" size="2"><?php<br>
include_once('vtlib/Vtiger/Module.php');</font></div>
<div> </div>
<div><font face="Arial" size="2"> $mod =
Vtiger_Module::getInstance('Campaigns');<br>
$mod->addLink('DETAILVIEW', 'This is a Testlink!',
'test.php?src_record=$RECORD$');</font></div>
<div> </div>
<div><font face="Arial" size="2">Link is added in the
vtiger_links-table</font></div>
<div> </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> </div>
<div><font face="Arial" size="2">include_once('vtlib/Vtiger/Link.php');<br>$customlink_params =
Array('MODULE'=>$currentModule, 'RECORD'=>$focus->id,
'ACTION'=>vtlib_purify($_REQUEST['action']));<br>$smarty->assign('CUSTOM_LINKS',
Vtiger_Link::getAllByType(getTabid($currentModule),
Array('DETAILVIEWBASIC','DETAILVIEW'), $customli<br>nk_params));</font></div>
<div> </div>
<div><font face="Arial" size="2"></font> </div>
<div> </div>
<div><font face="Arial" size="2">Best regards,</font></div>
<div> </div><span class="sg">
<div><font face="Arial" size="2">Stefan</font></div></span></div>
<br>_______________________________________________<br>
Reach hundreds of potential candidates - <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://jobs.vtiger.com" target="_blank">http://jobs.vtiger.com</a> <br></blockquote></div><br><br clear="all"><br>-- <br>
Regards,<br>Asha<br>vtiger Team