How to create a dropdown of members' usernames?
Hi there.
I have a site running Low Search and Zoo Visitor. I want to have a search form that includes a dropdown box that contains all the site members' usernames. When the user selects one and clicks the Search button, the results page would show only entries from the selected member.
Seems simple enough but I'm having trouble.
Thanks!
Replies
Low 18 Sep 2015 16:21
I think your best bet is to use the Query module with a query like
ZenBug 18 Sep 2015 16:40
Oh really? I figured the Low Search Members add-on would be for this purpose (https://github.com/low/low_search_mem...).
No?
Low 18 Sep 2015 16:56
Well, the answer to your question "How to create a dropdown of members' usernames?" is using the Query module. That will generate a list of usernames.
You can then use the username param to filter the entries generated by that list: https://ellislab.com/expressionengine...
Just make sure the select has name="username" defined.
ZenBug 18 Sep 2015 17:30
Oh okay. Thanks, Low.