Hi Bruce,<br><br>Payslip module has no specific functionality w.r.t a CRM. It is just a skeleton module used for explaining<br>
the usage of vtlib API. <br>
<br>To understand the generation of HTML you will need to understand Smarty templates: <a href="http://smarty.net/">http://smarty.net/</a><br><br>The HTML view generated for Listview, Createview, Detailview etc.. are through Smarty templates that could<br>
be found in Smarty/templates directory of vtigercrm.<br><br style="text-decoration: underline;"><span style="text-decoration: underline;">For example</span>: Look at modules/Payslip/ListView.php and then Smarty/templates/ListView.tpl to understand<br>
how the ListView is generated. <br><br>Regards,<br>Prasad<br>vtiger Team<br><br><div><span class="gmail_quote">On 12/9/08, <b class="gmail_sendername">bruce</b> &lt;<a href="mailto:bedouglas@earthlink.net">bedouglas@earthlink.net</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;">
Hi Prasad.<br> <br> Thanks for the reply. I&#39;ve read the pdf docs that come with the vtlib from<br> the forge site. But I&#39;ve still got questions.<br> <br> Here&#39;s my situation. I&#39;m looking to create a complete test module/tab with a<br>
 few sublinks. The goal is to somewhat emulate one of the existing tabs, that<br> have the &quot;lead/contact/account&quot; submenus.<br> <br> I want my test to allow a user to select from a given list of<br> contacts/accounts and to select the ones that he&#39;d like to work with. I&#39;d<br>
 like to limit the initial fields that a user would initially see when the<br> user is making their selection. Once the user has been approved to work with<br> his selections, the user would have access to the complete fields for the<br>
 contacts selected contacts.<br> <br> My understanding of vTiger is that I can modify it (add modules/tabs) to<br> accomplish my test.<br> <br> The pdf implies that I can create a test &quot;payslip&quot; app. Can you tell me what<br>
 this does? Will the result of following the pdf give me a new module/tab,<br> with a html page/section similar to the section for the leads/contacts that<br> the user sees. (Is this what you guys call a &quot;view&quot;?)<br>
 <br> Does the payslip app/test provide the templates. Couldn&#39;t see them under the<br> modules dir.<br> <br> Do I need to be concerned with the import/export parts of the pdf doc if I&#39;m<br> simply using my changes for my own app?<br>
 <br> From a more basic perspective, is this the best approach to accomplish what<br> I mentioned at the beginning of this post/email..<br> <br> If I can get through this process, and complete my test, I&#39;d be more than<br>
 wiling to contribute a writeup as to how to accomplish what I create...<br> <br> So. After reading sections #7, #8 (again!!) I&#39;d like to go through the<br> section/test php file in detail with you.. to get my head around exactly how<br>
 this is supposed to work, and to make sure I understand what/how the app is<br> supposed to perform creating new modules.<br> <br> Oh. as an aside. How do you programatically remove/hide/delete a given<br> module/tab as well?<br>
 <br> Any/all pointers/comments will be appreciated!!<br> <br> <br> Thanks<br> <br><br> -bruce<br> <br><br> <br> -----Original Message-----<br> From: <a href="mailto:vtigercrm-developers-bounces@lists.vtigercrm.com">vtigercrm-developers-bounces@lists.vtigercrm.com</a><br>
 <br>[mailto:<a href="mailto:vtigercrm-developers-bounces@lists.vtigercrm.com">vtigercrm-developers-bounces@lists.vtigercrm.com</a>]On Behalf Of Prasad<br> Sent: Monday, December 08, 2008 10:20 PM<br> To: <a href="mailto:vtigercrm-developers@lists.vtigercrm.com">vtigercrm-developers@lists.vtigercrm.com</a><br>
 <br>Subject: Re: [Vtigercrm-developers] creating a test module/tab -<br> bestapproach..<br> <br> <br> Hi Bruce,<br> <br> vtlib Project URL: <a href="http://forge.vtiger.com/projects/vtlib">http://forge.vtiger.com/projects/vtlib</a><br>
 <br> Payslip is an example module to was created to explain the usage of vtlib<br> APIs<br> <br> vtiger CRM is driven by PHP and Smarty. The files in modules/Payslip servers<br> as entry point<br> of different views like ListView, DetailView, EditView etc... Smarty<br>
 templates are used to generate<br> the HTML.<br> <br> The information regarding fields of the modules are obtained using the<br> common (core) APIs.<br> <br> After unpacking vtlib package, read through vtlib.Test.Module1.php to<br>
 understand the usage of vtlib APIs (Step 1 to 7 of documentation)<br> Read the Step 8 of the documentation to understand more details of required<br> Module files.<br> <br> Regards,<br> Prasad<br> vtiger Team<br> <br> <br>
 On 12/9/08, bruce &lt;<a href="mailto:bedouglas@earthlink.net">bedouglas@earthlink.net</a>&gt; wrote:<br> Hi Tony/David.<br> <br> I&#39;ve taken a look at the pdf docs for the vtlib. I&#39;m trying to wrap my head<br> around exactly what the payslip app does.<br>
 <br> I see that it performs some db functions, as well as connecting into the<br> vTiger app... But I can&#39;t see where the UI stuff occurs. I&#39;m assuming this<br> is in the Smarty Template stuff, that&#39;s not provided.<br>
 <br> If I simply wanted to create a &quot;copy&quot; of an existing module/tab, that I<br> could then modify... is there an example somewhere that I can play around<br> with?<br> <br> Basically, I&#39;m looking to create a test module, that will allow a user to<br>
 select an account/contact that the user will work with. The current version<br> of vTiger doesn&#39;t appear to allow this kind of functionality.<br> <br> Thanks<br> <br> <br> -bruce<br> <br> <br> <br> <br> -----Original Message-----<br>
 From: Tony Thomas [mailto:<a href="mailto:tgt@vtiger.com">tgt@vtiger.com</a>]<br> Sent: Monday, December 08, 2008 5:47 PM<br> To: bruce<br> Subject: Re: creating a test module/tab - best approach..<br> <br> <br> Hi Bruce,<br>
 You can use the 5.0.4 version for now if you intend to develop<br> and use the extension in the near future.<br> <br> The vtlib download works for <a href="http://5.0.4.">5.0.4.</a>&nbsp;&nbsp;Please check the blog for<br> more information and download links.<br>
 Regards,<br> Tony Thomas<br> vtiger Team<br> <br> <br> On 12/8/08, bruce &lt;<a href="mailto:bedouglas@earthlink.net">bedouglas@earthlink.net</a>&gt; wrote:<br> &gt; David V<br> &gt;&nbsp;&nbsp;Tony Thomas.<br> &gt;<br> &gt;&nbsp;&nbsp;RE: Creating test module/tab!!<br>
 &gt;<br> &gt;&nbsp;&nbsp;Hi.<br> &gt;<br> &gt;&nbsp;&nbsp;Pertaining to the vtlibm should I use the v5.0.4, or the v5.1 version of<br> &gt;&nbsp;&nbsp;vTiger. If I should use the 3.1 version, any pointers as to where I<br> should<br> &gt;&nbsp;&nbsp;grab it?<br>
 &gt;<br> &gt;&nbsp;&nbsp;Thanks<br> &gt;<br> &gt;&nbsp;&nbsp;-bruce<br> &gt;&nbsp;&nbsp;<a href="mailto:bedouglas@earthlink.net">bedouglas@earthlink.net</a><br> &gt;<br> &gt;<br> &gt;<br> &gt;&nbsp;&nbsp;-----Original Message-----<br> &gt;&nbsp;&nbsp;From: <a href="mailto:vtigercrm-developers-bounces@lists.vtigercrm.com">vtigercrm-developers-bounces@lists.vtigercrm.com</a><br>
 &gt;&nbsp;&nbsp;[mailto:<a href="mailto:vtigercrm-developers-bounces@lists.vtigercrm.com">vtigercrm-developers-bounces@lists.vtigercrm.com</a>]On Behalf Of<br> David<br> &gt;&nbsp;&nbsp;V.<br> &gt;&nbsp;&nbsp;Sent: Monday, December 08, 2008 5:05 PM<br>
 &gt;&nbsp;&nbsp;To: <a href="mailto:vtigercrm-developers@lists.vtigercrm.com">vtigercrm-developers@lists.vtigercrm.com</a><br> &gt;&nbsp;&nbsp;Subject: Re: [Vtigercrm-developers] tutor/guru for creating a test<br> &gt;&nbsp;&nbsp;module/tab<br> &gt;<br>
 &gt;<br> &gt;&nbsp;&nbsp;Bruce,<br> &gt;<br> &gt;&nbsp;&nbsp;You should definitely consider using the new vtlib.<br> &gt;&nbsp;&nbsp;It&#39;s really easy to create a new module in vtiger with it.<br> &gt;<br> &gt;&nbsp;&nbsp;<a href="http://www.vtiger.com/blogs/2008/11/26/vtlib-20-released/">http://www.vtiger.com/blogs/2008/11/26/vtlib-20-released/</a><br>
 &gt;<br> &gt;&nbsp;&nbsp;Try and let us know :-)<br> &gt;<br> &gt;&nbsp;&nbsp;David V.<br> &gt;<br> &gt;<br> &gt;&nbsp;&nbsp;On Mon, Dec 8, 2008 at 7:41 PM, bruce &lt;<a href="mailto:bedouglas@earthlink.net">bedouglas@earthlink.net</a>&gt; wrote:<br>
 &gt;<br> &gt;&nbsp;&nbsp;Hi...<br> &gt;<br> &gt;&nbsp;&nbsp;Looking to create/implement a test module/tab with a few test subtabs...<br> &gt;<br> &gt;&nbsp;&nbsp;I&#39;ve got vTiger 5.0.4, and have looked through the online wiki/tutorial.<br> If<br> &gt;&nbsp;&nbsp;you&#39;ve got the skills in creating tabs/modules, and you&#39;re willing to<br>
 &gt;&nbsp;&nbsp;exchange a few emails, let me know!<br> &gt;<br> &gt;&nbsp;&nbsp;thanks<br> &gt;<br> &gt;&nbsp;&nbsp;-bruce<br> &gt;<br> &gt;&nbsp;&nbsp;_______________________________________________<br> &gt;&nbsp;&nbsp;Reach hundreds of potential candidates - <a href="http://jobs.vtiger.com">http://jobs.vtiger.com</a><br>
 &gt;<br> &gt;<br> <br> _______________________________________________<br> Reach hundreds of potential candidates - <a href="http://jobs.vtiger.com">http://jobs.vtiger.com</a><br> <br> </blockquote></div><br>