Time for action – setting up relationships in Xataface
Next, let's set up some relationships in Xataface so that we can see all of the values in the profile fields when we click on a user from the list view to view the details window. This will involve setting up several relationships, but once we are finished we'll have a nice interface that allows us to toggle through the profile field information. Follow these steps to get it set up:
In the
tables
directory located in your Xatafacecims
directory, create the following two directories:mdl_user_info_data
mdl_user_field
These represent the two tables that contain profile field information.
In the
conf.ini
file, located in theXataface
root, titledcims
, remove the two lines under thedisallowed_tables
list for themdl_user_info_data
andmdl_user_field
tables and save theconf.ini
file.With your text editor, create a file that contains the following code:
[Profile Fields] mdl_user_info_data.userid = mdl_user.id
Then save the file with the filename...