I’m trying to work out how to filter a display based on the company a user is associated with.
The idea being that all users go to the same custom display page but instead of only showing entries that that user id has entered, it shows all entries of the company that user is a member of.
So, I have a series of users linked by which company they are in, I’m sending them to a list of events that a number of different companies have published, but I only want to show the events that relate to their company.
I’ve used the where filter before to tag content:
company – is equal to – [get param=company]
on the list of events but I’m a bit stumped as to what to write in the custom display as before I’ve only used this:
[display-frm-data id=101 get=company filter=1 get_value=[id]]
Which works to show only the entries from that user, but I have no idea how to filter based on other aspects of that users profile.
All users have signed up via the registration plugin and so there is a form that links every user to a specific company.
Am I going about this wrong? Do I instead filter the custom display based on if statements… [if 234 equals=[companyx] show the data[/if 234]?
Thanks in advance,