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

Support archive

Hyperlink Suggested keyword in Low Search

johnhenry 23 Feb 2015 15:42 question, complete

Using Low Search 4.0 and the new Suggestions tag can you think of a way to hyperlink the suggested word to make it easy to click on to do a search using the suggested word rather than copying and pasting.

I am encoding query

{exp:low_search:suggestions keywords="{low_search_keywords}" keywords:lang="en" limit="1"}
Did you mean <a href="{what to add here}">{suggestion}</a>?
{if no_suggestions}No suggestions found.{/if}
{/exp:low_search:suggestions}

Replies

  1. Low 23 Feb 2015 15:48

    You can use the URL tag for that:

    {exp:low_search:url keywords="{suggestion}"}

    Add any other parameter in there that you need.

  2. johnhenry 23 Feb 2015 15:52

    Of course. Thanks Low