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> &lt;<a href="mailto:paproth@4com.de">paproth@4com.de</a>&gt; 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&#39;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">&lt;?php<br>  
include_once(&#39;vtlib/Vtiger/Module.php&#39;);</font></div>
<div> </div>
<div><font face="Arial" size="2">  $mod = 
Vtiger_Module::getInstance(&#39;Campaigns&#39;);<br>  
$mod-&gt;addLink(&#39;DETAILVIEW&#39;, &#39;This is a Testlink!&#39;, 
&#39;test.php?src_record=$RECORD$&#39;);</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(&#39;vtlib/Vtiger/Link.php&#39;);<br>$customlink_params = 
Array(&#39;MODULE&#39;=&gt;$currentModule, &#39;RECORD&#39;=&gt;$focus-&gt;id, 
&#39;ACTION&#39;=&gt;vtlib_purify($_REQUEST[&#39;action&#39;]));<br>$smarty-&gt;assign(&#39;CUSTOM_LINKS&#39;, 
Vtiger_Link::getAllByType(getTabid($currentModule), 
Array(&#39;DETAILVIEWBASIC&#39;,&#39;DETAILVIEW&#39;), $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