I need to add fields to the Joomla registration, 15 or more. But I don't want to use the Joomla Fields functionality. Mainly because its table structure is vertical and I want a horizontal structure, ie create my own table with named columns. Too challenging setting up Connectivity table lists with vertical structure - needs multiple models, php editing ... .
In another post Max said "Connectivity works well and easily with horizontal tables, when a table is connected to another using a foreign key, but some tables store the data virtually, like the Joomla profile fields table for example and this makes managing the data harder."
So is the following possible?
- create a new table and give it a unique extension / name
- add the additional fields
- include two id fields => one that will hold the Joomla userid (foreign key) and the other will be the primary key for the additional fields
- create 2 forms, ie the base Joomla registration form and a form with the additional fields, based on the new table.
- user submits the base form
- on success gets redirected to the second form that includes the additional user details. This form includes a value for a foreign key value, that gets passed to it from the userid that was successfully submitted in the first form.
- this will give me the userid in both tables, can then join them for creating a Connectivity table listing etc.
- Weakness with this approach is that user might close browser before 2nd form opens. But the user group is closed and I can control with messages, eg on submit but before success, advise user that new form will be opening.
- And if the second form fails submission then the user values are deleted from the users table and user has to redo.
Can this be achieved with the CF setup actions etc and without editing Joomla's php (NB point 6 second sentence, and point 9)
Thanks