<div dir="ltr">Hi,<div><br></div><div>Yes their is a way you can achieve placing salutation next to lastname instead firstname. In Field.php (modules/Vtiger/models) </div><div>getFieldDataType() api, We are checking for firstname and setting fieldDataType to salutation. Here you need to check for </div>
<div>lastname and uitype of lastname. You can get uitype of lastname by this query on your database.</div><div><br></div><div>SELECT uitype FROM vtiger_field WHERE fieldname="lastname";<br></div><div><br></div>
</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 10, 2014 at 12:17 AM, Holbok István <span dir="ltr"><<a href="mailto:holbok@gmail.com" target="_blank">holbok@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Dear Vtiger Community,<br>
<div><br>
Has anybody idea how to change the first name - last name order in
Solutation.tpl for vtiger 6?<br>
<br>
Kindest regards,<br>
Istvan Holbok<br>
<br>
-------- Eredeti üzenet --------
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<th nowrap valign="BASELINE" align="RIGHT">Tárgy: </th>
<td>How to change Solutation.tpl in vtiger 6</td>
</tr>
<tr>
<th nowrap valign="BASELINE" align="RIGHT">Dátum: </th>
<td>Sun, 06 Apr 2014 20:38:07 +0200</td>
</tr>
<tr>
<th nowrap valign="BASELINE" align="RIGHT">Feladó:
</th>
<td>Holbok István <a href="mailto:holbok@gmail.com" target="_blank"><holbok@gmail.com></a></td>
</tr>
<tr>
<th nowrap valign="BASELINE" align="RIGHT">Válaszcím:
</th>
<td><a href="mailto:holbok@gmail.com" target="_blank">holbok@gmail.com</a></td>
</tr>
<tr>
<th nowrap valign="BASELINE" align="RIGHT">Címzett:
</th>
<td><a href="mailto:vtigercrm-developers@lists.vtigercrm.com" target="_blank">vtigercrm-developers@lists.vtigercrm.com</a>
<a href="mailto:vtigercrm-developers@lists.vtigercrm.com" target="_blank"><vtigercrm-developers@lists.vtigercrm.com></a></td>
</tr>
</tbody>
</table>
<br>
<br>
Dear Vtiger Community,<br>
<br>
In some countries e.g. in Hungary the right order of names is
"Salutation" "Last name/Surname" and "First name". For example:
Dr. Horváth Péter, where Horváth is the surname, and Péter is the
first name.<br>
<br>
The vtiger 6 default order is "Salutation" "First name" and "Last
name/Surname", and the salutation pick-list is handled by the
file: [vtiger
roots]/layouts/vlayout/modules/Vtiger/uitypes/Salutation.tpl<br>
<br>
The earlier vtiger versions ( < 5.4 ) handled this issue with
UITypes 55 and 255, and it was not easy to modify the smarty
template file where the condition uitype eq "255" was tested.<br>
<br>
In vtiger 6, I can easy change the field order, and the "Last
name" will appear first, but in the edit view the Salutation
pick-list is fixed to the first name, e.g.:<br>
<a href="http://localhost/vtiger/index.php?module=Contacts&view=Edit&record=10" target="_blank">http://localhost/vtiger/index.php?module=Contacts&view=Edit&record=10</a><br>
<img alt="" src="cid:part2.04080608.07000608@gmail.com" height="345" width="1525"><br>
<br>
<br>
How can I move the Salutation pick-list before the Last name or
how can I change the Salutation.tpl in order to achieve it?<br>
This Salutation pick-list is defined in the [vtiger
roots]/layouts/vlayout/modules/Vtiger/uitypes/Salutation.tpl<span class="HOEnZb"><font color="#888888"><br>
<br>
<div>-- <br>
üdvözlettel / regards:<br>
<br>
<b>Holbok István</b><br>
<br>
+3670-342-0900<br>
<b>e-mail:</b> <a href="mailto:holbok@gmail.com" target="_blank">holbok@gmail.com</a><br>
<b>SkyPe:</b> holboki<br>
<br>
</div>
<br>
</font></span></div>
<br>
<br>
</div>
<br>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">With<br>Best Regards<br>Uma.S<br><div>Vtiger Team</div></div>
</div>