[Vtigercrm-commits] [vtiger development] #6383: Vtlib : add custom button next to Import and Export in the tools menu
vtiger development
vtiger-tickets at trac.vtiger.com
Tue Nov 3 23:47:20 EST 2009
#6383: Vtlib : add custom button next to Import and Export in the tools menu
--------------------------+-------------------------------------------------
Reporter: davidv.net | Owner: developer
Type: enhancement | Status: new
Priority: unassigned | Milestone: 5.2.0
Component: vtigercrm | Version: 5.1.0
Resolution: | Keywords:
--------------------------+-------------------------------------------------
Comment (by davidv.net):
Below is a copy of this post by Joe :
http://forums.vtiger.com/viewtopic.php?p=87730#87730
Hi David,
vtlib lets us add more actions on the detailview which is what Stephen was
asking about (although the thread title isn't correct), it doesn't let us
add more buttons on the upper tool bar.
To add more buttons you have to modify the code:
Smarty/templates/Buttons_List1.tpl
Smarty/templates/Buttons_List.tpl
Those are the two files you need to touch.
This is the modification I add in our Timesheet and Payment module.
{{{
Index: Smarty/templates/Buttons_List1.tpl
===================================================================
--- Smarty/templates/Buttons_List1.tpl (revisión: 1679)
+++ Smarty/templates/Buttons_List1.tpl (copia de trabajo)
@@ -133,6 +133,16 @@
</tr>
</table>
</td>
+ {if $MODULE eq 'CobroPago'}
+ <td class="small">
+ <!-- Simple CobroPago -->
+ <table border=0 cellspacing=0 cellpadding=5>
+ <tr>
+ <td style="padding-left:10px;"><a href="javascript:;"
onClick='return
window.open("index.php?module=CobroPago&action=simpleCyP&return_module=CobroPago&return_action=index","{$MOD.LBL_SimpleCobroPago}","");'><img
src="modules/CobroPago/images/simplecyp.gif"
alt="{$MOD.LBL_SimpleCobroPago}" title="{$MOD.LBL_SimpleCobroPago}"
border="0"></a></td>
+ </tr>
+ </table>
+ </td>
+ {/if}
</tr>
</table>
</td>
}}}
Hope that helps.
Joe
TSolucio
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/6383#comment:1>
vtiger development <http://trac.vtiger.com/>
vtigerCRM
More information about the vtigercrm-commits
mailing list