Hi David,<br><br>Following are few conventions I would like to suggest: (Let us improve it as we go along, so feel free to add)<br><br><span style="font-family: courier new,monospace;">* Please have a short-prefix for the module developed by you</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> - The short-prefix could be a name of your company or reverse domain name like java package. This helps in avoiding name-clashes over a long time.</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> - Example: From <a href="http://mycompany.com">mycompany.com</a>, the preferable module name would be: MyComModule</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">* Prefix your tables related to modules as well. This is very important.</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">* Avoid module or table names without the prefix. This might clash with standard modules/tables.</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">* You can control the display name of module through translation.<br> - This helps in controlling suffixing with 's' or not accordingly.<br style="font-family: courier new,monospace;">
</span><br>Regards,<br>Prasad<br><br><div><span class="gmail_quote">On 9/27/09, <b class="gmail_sendername">David V.</b> <<a href="http://davidv.net">davidv.net</a>@<a href="http://gmail.com">gmail.com</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;">
Hi !<br><br>Are there any naming conventions for the modules in Vtiger.<br><br>Most modules in Vtiger have to deal with multiples entities :<br><br>Contacts<br>Accounts<br>Potentials<br><br>So they are named accordingly with and ending "s" (plural form)<br>
<br>But some others don't have the ending "s"<br><br>It's normal for Calendar if you see it as one calendar and not as a group of activities.<br>And also for HelpDesk.<br><br>But it's curious that following modules don't have an "s"<br>
Invoice<br>SalesOrder<br>PurchaseOrder<br><br>I came across this when trying to make a new "Computers" module using the example in Vtlib.pdf as a basis.<br><br>In this documentation the PaySlip example is without an "s" but I wanted to have my new module just like Accounts and Contacts (with this trailing s).<br>
So I tried to put Computer in some places and Computers in some others places.<br><br>I spent a while trying to make it work but it wouldn't :-( <br>(I probably missed something)<br>Finaly I had to stick with the name Computer.<br>
<br>Actually the users don't mind. Once everything is translated no one will read the addresses in the browser's adress bar and call you because they see "house" instead of "houses" (or "cow" instead of "cows") but I just wanted to understand what was the convention in Vtiger and stick to the other developers best practices.<br>
<br>So how do you guys do it ?<br>Do you put an "s" or no ?<br><br>Disclaimer : I'm a true fan of Vtiger. I'm not critisizing here. Just trying to provide some constructive feedback. :-)<br><span class="sg"><br clear="all">
David V.<br>
</span><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>