• Hello Fabrik Community

    Fabrik is now in the hands of the development team that brought you Fabrik for Joomla 4. We have recently transitioned the Fabrik site over to a new server and are busy trying to clean it up. We have upgraded the site to Joomla 4 and are running the latest version of Fabrik 4. We have also upgraded the Xenforo forum software to the latest version. Many of the widgets you might have been used to on the forum are no longer operational, many abandoned by the developers. We hope to bring back some of the important ones as we have time.

    Exciting times to be sure.

    The Fabrik 4.0 Official release is now available. In addition, the Fabrik codebase is now available in a public repository. See the notices about these in the announcements section

    We wish to shout out a very big Thank You to all of you who have made donations. They have really helped. But we can always use more...wink..wink..

    Also a big Thank You to those of you who have been assisting others in the forum. This takes a very big burden off of us as we work on bugs, the website and the future of Fabrik.

How to display an extra element from the joined table?

bontemuis

Member
I have two tables with a 1:1 relationship: Profile* and AdditionalInfo**. I made a LEFT join from Profile (id) to AdditionalInfo (prf_id).
The prf_id element is a databasejoin which displays Name from the Profile. In the 'Add option in front end' tab I set 'Link to the joined record' to Yes to (hyper)link Name to Profile. The AdditionalInfo List looks like: Name (join), Field1 etc.

Question 1: what do I need to do to also display Company in the AdditionalInfo List? I guess I don't need to add another databasejoin, do I?
Question 2: if I do a CSV export, the Name field shows either the 'id' or a url link to Profile. How do I get the actual Name value?

*Profile: id, Name, Company etc.
**AdditionalInfo: id, prf_id, Field1, Field2 etc. I want to change this to: id, prf_id, Company form Profile, Field1, Field2
 
I'm not yet very experienced with Fabrik obviously :), but I could really use some help on these two matters. Anyone?
 
Thanks Troester,

I tried option 2 first and that worked. It also answered my second question, about the CSV export. So now I would like to understand option 1.
If you say 'joined' Profile List, I assume you just mean the Profile List with the 6 different (1 to 1) Joins; because I don't have any other Profile list.
So how exactly can I change something to display e.g. two fields of Profile and all the other fields of the joined table? To me it seems this works just the other way around?
 
Hi Troester,

Could you please shine your light on "Why don't you use your joined "Profile" list to display all infos?".
So I need to have:
Joined table 1: id, prf_id (=name of Profile), Company from Profile, Field1, Field2 etc
Joined table 2: id, prf_id (=name of Profile), Company from Profile, Field1, Field2 etc
Joined table 3: id, prf_id (=name of Profile), Company from Profile, Field1, Field2 etc
Etc.

Thanks in advance.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top