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

Support archive

How do I know if a parameter goes on the low_search:form or the low_search:results tag?

Jules Webb 25 Jul 2017 18:07 question, complete

Is there some rule or best practices to know when to apply which parameter to the search or results tag, or both?

I've got my searches functioning, but this still confuses me.

Thanks for the clarification
jules

Replies

  1. Low 25 Jul 2017 18:58

    The only parameters that work on the Form tag, are the ones listed in the docs.

    The Results tag supports the parameters mentioned in the docs, as well as all parameters used with the channel:entries tag.

    Parameters that limit/filter the entries shown in the Results tag (filter parameters) can either be put inside the Form tag as input elements OR hard-coded in the results tag, as explained here.

    Make sense?

  2. Jules Webb 25 Jul 2017 19:44

    Yes, thank you that's helpful. This is my first time using Low Search and I'm still working within a learning curve.

    I think the filter perimeters confused me. I'm working with a relationship field and had a hard time sorting out where to put parent:field_name.

    I had it on both the form and results tag, but I ended up with it on just the form tag. The search worked both ways and that's when I figured I didn't really understand when and where parameters should be placed. Now I've removed it from both and the search still works.

    I'm doing a basic keyword search. I have a collection set up for the child channel and all seems to work fine. So evidently I don't need the parent:field_name parameter.

    I guess I was just overthinking it...