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

Support archive

Custom field variables not parsing in low_search:results tag

Mike Kroll 2 Mar 2012 19:12 idea, complete

Hi Low,

I have a complex search form that has keywords as well as several text inputs to filter by custom fields. The searching works well, but in the results loop, I can't display the custom field value that was searched.

From the docs it looks like {low_search_search:my_custom_field} should show the text that was searched for in the custom field, but it does not parse at all.

eg.


{exp:low_search:results query="{segment_3}" collection="bibliographies" limit="30" orderby="bibliography_year_created|title" sort="desc|asc"}
{if count == '1'}

You searched for {low_search_keywords} within the year {low_search_search:bibliography_year_created}

{/if}

... results...

{/exp:low_search:results}


Am I missing something or is this not supported?

I'm using Low Search 1.0.7

Replies

  1. Low 3 Mar 2012 09:24

    Hi Mike,

    Actually, those variables are currently only available within the low_search:form tag. I'll consider adding them to the low_search:results tag for a future version.

  2. Jim P 26 Jun 2012 10:12

    Is this still the case Low? I've been struggling to get this to show within the low_search_results tag.

  3. Low 27 Jun 2012 07:50

    It is. Do you still need it in the results tag?

  4. Jim P 27 Jun 2012 07:59

    Hi Low

    It's not crucial, but I would half expect a search to be able to say "Here are your search results for x and y.". It seems more logical to have that available in the results loop rather than the search form, but perhaps that's just me.

    Cheers

    Jim

  5. Low 27 Jun 2012 08:05

    Okay, I'll change this to a feature request to keep better track of it.

  6. rebecca 2 Jul 2012 21:32

    +1 for this!! :)

  7. Low 5 Nov 2012 14:22

    Added in v2.1.1!