
Originally Posted by
Pepin
Hello!
I noticed that in the Detail View of the Contacts module, SugarCRM combines the Last and First Name fields.
How do I do this for other fields?
Currently, I added fields for Japanese Last and First Name which are displayed separately in the Detail View. I want to be able to do the same thing as the default view, except it should display "Last Name First Name".
Thanks!
Hi Pepin
Have a look at the cache/modules/Contacts/ContactVardefs.php
PHP Code:
'name' =>
array (
'name' => 'name',
'rname' => 'name',
'vname' => 'LBL_NAME',
'type' => 'name',
'fields' =>
array (
0 => 'first_name',
1 => 'last_name',
),
'sort_on' => 'last_name',
'source' => 'non-db',
'group' => 'last_name',
'len' => '255',
'db_concat_fields' =>
array (
0 => 'first_name',
1 => 'last_name',
),
'importable' => 'false',
),
You can write some extended vardefs to do the same for your fields.
Remember rebuilding extensions just after generating the extended vardefs.
Cheers
Bookmarks