Forums

How can I show data related to the user logged in after a search?

gmarra7 05 Mar, 2019
How can I show data related to the user logged in after a search?I also inserted WHERE `Sinistro`.`user_id` = '842' but after launching the search it retrieves data related to another user as well as showing the attached screenshot.

​[file=11662]Screenshot_2019-03-05_Le_tue_denunce.png[/file]
healyhatman 05 Mar, 2019
{user:parameter}
For example:
{user:id}
If you just put {user:} in a HTML or Custom Code block it will show you you all the information about the user available to you through the shortcodes.
gmarra7 05 Mar, 2019
Meanwhile, thanks for the reply.

Now inserting the paginator functionality shows only the data related to the specific user, it seems that I solved the problem.

First though I had already used the condition user_id: {user: id} also returned values belonging to other users

Use of the conditions in Searchable fields should be made clearer.

Example how to make the search happen on several fields.

This topic is locked and no more replies can be posted.