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

Support archive

Form attribute gets added to low_search:url within Filters

travisb 15 Apr 2014 16:03 problem, complete

Hi,
Just updated to 3.1.4 and seeing that the "toggle-parameter would not toggle the last item in a set" is working now. But I'm now seeing a form attribute unexpectedly get added to the low_search:url in the Filter. So for example it's now:

href="{low_search:url result_page='shop/{segment_2}' toggle:category='{st:catid}'}"
renders:
/some/address?category=9|12&form_id=filter_form

on the filter links. The low_search:form has the parameter form_id="search_form", and using the form correctly sets the form id, and does not add that variable to the URL string. (The filter and form are separate from each other, but on the same page.)
Thanks for any help -

Replies

  1. Low 15 Apr 2014 16:54

    What is your complete Form tag? You can use http://pastie.org/ or http://pastebin.com/ for large chunks of code.

  2. travisb 15 Apr 2014 17:00

    {exp:low_search:form
    form_id="filter_form"
    result_page="shop/{segment_2}"
    }
    {exp:stash:get_list
    name="producttype_catids_of_brand_{segment_2_category_id}"
    unique="yes"
    parse_conditionals="yes"
    prefix="st"
    }
    <input id="fst{st:count}" name="category[]" type="checkbox" value="{st:catid}" {if "{st:catid}" IN ({low_search_category})} checked{/if}><label for="fst{st:count}">{st:catname}</label>
    {/exp:stash:get_list}
    <button class="tiny" type="submit">Update Results</button>
    {/exp:low_search:form}

  3. travisb 15 Apr 2014 17:01

    That didn't come out so well... http://pastie.org/private/uzwkd11j0n7...

  4. Low 15 Apr 2014 17:02

    So how are you using URLs inside the Form, here? 'Cause I'm not seeing any...

  5. travisb 15 Apr 2014 17:04

    Sorry, the Filter: http://pastie.org/private/jt2mkzv62ft...

  6. Low 15 Apr 2014 17:07

    Is that inside another Form tag? The form_id param isn't set on the Filters tag, obviously. So I'm not sure where it comes from here.

  7. travisb 15 Apr 2014 17:27

    The first pastie has the form and the second the filter - both on the same page but separate from each other

  8. Low 15 Apr 2014 17:47

    Okay, I'll get that fixed. In the meantime, you can work around the problem by setting a parameter on the Filters tag, for example: result_page="shop/{segment_2}"

  9. travisb 15 Apr 2014 17:58

    Thank you!