All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Filtering by Author

Stoyan Vasilev 19 Jun 2013 00:42 question, complete

Hey,

I have Low Search installed and I read in here that I can have an author filter for my search as long as I can populate a list of the authors as an html dropdown (inside the search form).

I am able to populate an html select dropdown with the authors but I am not sure what to put for the "name" attribute of the authors select tag and for the "value" attribute of each option tag. My author filter does not work right now and I am assuming that it's because the values mentioned above are not correct.

Thanks,
St

Replies

  1. Stoyan Vasilev 19 Jun 2013 01:57

    I also have the Zoo Visitor add-on installed on this site. Hopefully that helps.

  2. Low 19 Jun 2013 06:58

    You can use any of the native Channel Entries parameters as input fields. So you can use author_id as name, with an ID as value:

    http://ellislab.com/expressionengine/...

    As you're using Zoo Visitor, don't forget to set the status parameter to "not closed" or something in the Results tag.

  3. Stoyan Vasilev 19 Jun 2013 14:47

    This worked great. Thank you.

    I have an author and a category dropdown in the search form, I would like to set them up so that whatever the user selected in their search is already selected in the same search form on the results page. How can I do that?

    Thanks.

  4. Low 19 Jun 2013 14:50

    Make sure you have the query-parameter in place in the Form tag as well, then you can use {low_search_category} and {low_search_author_id} in the tag, for conditionals.

    In fact, you can use any {low_search_parameter} var inside the Form tag.

  5. Stoyan Vasilev 23 Jun 2013 15:33

    Thanks both of these worked.

    For anyone else reading, for {low_search_category} I had to do {low_search_category:initiatives} because my category is specified like this <select name="category:initiatives[]">...</select>

    Thanks!

    P.S. Low Search is a lot awesomer than the native search or Super Search.