I have a user element that is populated using juser as shown in the fabrik intro video (on homepage). At the joomla user level I have added a new group for school-class.
The user appears as a drop down in many lists
I want to add a filter in the element so that it figures out the school class of the logged in student and in any given list it only offers the names of other students in the class.
Example - who do you want to sit next to? - will offer a multiselect list of kids in the same class but not kids in other classes.
I tried the following:
Select * from cnr_users
Where Class in (select Class from cnr_users Where user = {$my->id})
Thanks
The user appears as a drop down in many lists
I want to add a filter in the element so that it figures out the school class of the logged in student and in any given list it only offers the names of other students in the class.
Example - who do you want to sit next to? - will offer a multiselect list of kids in the same class but not kids in other classes.
I tried the following:
Select * from cnr_users
Where Class in (select Class from cnr_users Where user = {$my->id})
Thanks