0

I want to insert user data from a third party component in "Edit user profile".

The component Events Booking has a table #__eb_registrants and also user_id from com_users (good tho match the current user?) and i need the columns first_name, last_name, address - and others but these three are the most important.

Case: The user can edit the login data AND the user data from other component in Edit user profile page.

1 Answer 1

0

You would need to create a Plugin extension that is triggered before the Edit User profile page is displayed to retrieve the values of the fields from the EB table and then add the additional input fields with these values to the rendered page.

The same Plugin should then be triggered either before save or after save of the user profile to take the values entered in the additional fields and save the entered data back into the EB table for that user id.

You could create custom fields for the com_user component to render the fields however you will still need a Plugin to retrieve and store the data of these custom fields in the EB table. Having the the fields rendered by the Plugin would be a better approach.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.