Answer the question
In order to leave comments, you need to log in
How to display related data from custom field?
I added a custom field for users, some data from other tables is written to it during registration,
how can I display the name of the record from another table using this added field in the admin panel in the user's view? at the moment only the ID of this record is displayed, the data type of the field is number
Answer the question
In order to leave comments, you need to log in
No way. But if you really want to, then
Open /modules/main/admin/user_edit.php , at the very end there is a code:
//Add user fields tab only when there is fields defined or user has rights for adding new field
if(
(count($USER_FIELD_MANAGER->GetUserFields($PROPERTY_ID)) > 0) ||
($USER_FIELD_MANAGER->GetRights($PROPERTY_ID) >= "W")
)
{
$tabControl->BeginNextFormTab();
$tabControl->ShowUserFields($PROPERTY_ID, $ID, ($strError <> '' || !$res));
}
Use the OnAdminTabControlBegin event hook to change the display of the user edit page.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question