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

Support archive

Show category in search results

Denver Sessink 11 Sep 2012 09:12 question, complete

Hi Low,

I have a form like this: http://pastebin.com/yEbWzqxW

Is it possible to show the selected category at the results page?

Best regards,
Denver

Replies

  1. Low 11 Sep 2012 09:16

    Hi Denver,

    Yes, that's possible. Make sure you add the query="" parameter to the Form tag, then use a conditional like this:

    {if cat_id IN ({low_search_category})} selected="selected"{/if}


    Also check out the docs on this conditional.

  2. Denver Sessink 11 Sep 2012 09:19

    Hi Low,

    Thanks for this quick reply :)

    I know what you mean, but what I want to achieve is this: http://pastebin.com/qxCSV0t5

    Look at "THE SELECTED CATEGORY HERE".

  3. Low 11 Sep 2012 09:27

    I'm afraid the search parameters are currently only available in the Form tag. It's already been requested to add this to the Results tag too, so it's on the list.

  4. Denver Sessink 11 Sep 2012 09:31

    Ok, unfortunately. Anyway thanks for your quick reply!

    Have a nice day.