[Vtigercrm-developers] How to change the first name - last name order in Solutation.tpl for vtiger 6

Uma S uma.s at vtiger.com
Fri Apr 11 13:23:02 GMT 2014


Hi,

Yes their is a way you can achieve placing salutation next to lastname
instead firstname. In Field.php (modules/Vtiger/models)
getFieldDataType() api, We are checking for firstname and setting
fieldDataType to salutation. Here you need to check for
lastname and uitype of lastname. You can get uitype of lastname by this
query on your database.

SELECT uitype FROM vtiger_field WHERE fieldname="lastname";



On Thu, Apr 10, 2014 at 12:17 AM, Holbok István <holbok at gmail.com> wrote:

>  Dear Vtiger Community,
>
> Has anybody idea how to change the first name - last name order in
> Solutation.tpl for vtiger 6?
>
> Kindest regards,
> Istvan Holbok
>
> -------- Eredeti üzenet --------  Tárgy: How to change Solutation.tpl in
> vtiger 6  Dátum: Sun, 06 Apr 2014 20:38:07 +0200  Feladó: Holbok István
> <holbok at gmail.com> <holbok at gmail.com>  Válaszcím: holbok at gmail.com  Címzett:
> vtigercrm-developers at lists.vtigercrm.com
> <vtigercrm-developers at lists.vtigercrm.com><vtigercrm-developers at lists.vtigercrm.com>
>
> Dear Vtiger Community,
>
> 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.
>
> 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
>
> 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.
>
> 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.:
> http://localhost/vtiger/index.php?module=Contacts&view=Edit&record=10
>
>
>
> 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?
> This Salutation pick-list is defined in the [vtiger
> roots]/layouts/vlayout/modules/Vtiger/uitypes/Salutation.tpl
>
> --
> üdvözlettel / regards:
>
> *Holbok István*
>
> +3670-342-0900
> *e-mail:* holbok at gmail.com
> *SkyPe:* holboki
>
>
>
>
>
> _______________________________________________
> http://www.vtiger.com/
>



-- 
With
Best Regards
Uma.S
Vtiger Team
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20140411/f7878222/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 40807 bytes
Desc: not available
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20140411/f7878222/attachment-0001.png>


More information about the vtigercrm-developers mailing list