Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More complex filter and search in the user directory #73

Open
vvovkata opened this issue Jun 17, 2021 · 3 comments
Open

More complex filter and search in the user directory #73

vvovkata opened this issue Jun 17, 2021 · 3 comments

Comments

@vvovkata
Copy link

vvovkata commented Jun 17, 2021

The user directory has huge potential but currently, it can search users based on their groups and user name.

Would be great if we can have a search based on each field we create.

For example, if we create 4 fields: 1 of them is "Location", 2nd is "Education" and 3rd is "Skills", 4th is years of experience. Then we can search for all users that are at a specific location, with specific education and specific skills, with specific years of experience. All 4 together, while 1 won't exclude the other but the filter preferences should be additive.

Also, the dropdown should allow multiple choices.

@clarkwinkelmann
Copy link
Member

How would those fields be added? I don't think there's any change that has to be done in this extension, every third-party extension is already able to add filters by themselves.

The Masquerade extension adds a search gambit for answers, I think it's called answer: and can be used in the search field.

My own Formulaire extension doesn't have any search integration but this might come in the future.

The Taxonomies extension had an integration with User Directory in beta 13 but it's broken in Flarum 1.0 because we completely changed how filters are implemented in User Directory. This will likely be added back one way or another once I finish the 1.0 update of Taxonomies.

If you make a custom extension to add those fields, then your custom extension can add the filters on the User Directory page as needed.

@vvovkata
Copy link
Author

Yes, sorry, forgot to mention that I am using the Masquerade extension so my suggestion wasn't very clear. I was wondering if both extensions can sync in some way so we have searchable fields in the user directory page.

@clarkwinkelmann
Copy link
Member

Another issue with Masquerade is that if the field is free text, a dropdown with all options wouldn't be very user friendly. It would make more sense for those fields to integrate with the full text search.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants