• Payment Plugins Poll

    We need your feedback on the need for updated payment plugins. Please go here and give us your feedback.

  • Joomla 5.1

    For running J!5.1 you must install Fabrik 4.1
    See also Announcements

  • Subscription and download (Fabrik 4.1 for J!4.2+ and J!5.1) are working now

    See Announcement
    Please post subscription questions and issues here

    We have resolved the issue with the J! updater and this will be fixed in the next release.

[solved] Add Columns From Another Table into List

aijosh

Member
Hello,

I need to display some columns from another table in another list.

LIST A
id, userid, name, surname

LIST B
id, listA_id, userid, school, course, year


I am loading LIST B but I want name, surname to also appear.

I know I can duplicate LIST A (to say LIST C) and then join LIST B to it.

I really would prefer if I can dont have to do that.

Is there a straightforward way to do this right when loading LIST B?
 
I don't think there are any other options. With "add columns from another table", using an foreign key (listA_id), you are pretty much describing a one-to-one join.

You could do it be steam yourself, with some crazy custom template mods where you manually look up the joined data and insert columns into your list by hand, but that would be .... sub optimal.

Or you could run a php_events list plugin, and onLoadData grab the joined data and somehow insert it into the list data ... but again ... sub optimal.

-- hugh
 
Back
Top