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

Support archive

Searching DevDemon Tagger tags

Nick 30 Mar 2014 13:15 problem, complete

Using Low Search 3.1.2 I'm trying to search Tagger tags, but it's not filtering results. The example in the docs is for Solspace tag, so maybe I have some incorrect syntax?


{exp:tagger:cloud}
<label>
<input type="checkbox" name="tag_id[]" value="{tag_id}"{if tag_id IN ({low_search_tag_id})} checked{/if}>
{tagger:tag_name}
</label>
{/exp:tagger:cloud}

Replies

  1. Low 30 Mar 2014 13:25

    What are your EE, Tagger and PHP versions? Also, can you share your Form and Results tag code. Use pastie.org for large chunks of code.

  2. Nick 30 Mar 2014 13:50

    Thanks for the quick reply!

    EE 2.7.2
    Tagger 3.2.1
    PHP 5.3.3

    Sure - here's my form
    http://pastie.org/private/ex91oykaf20...

    And my results tag code:
    http://pastie.org/private/uh7z6qmbuzm...

    Everything works except the tag filter.

  3. Low 30 Mar 2014 14:01

    Can you enable template debugging and copy/paste all lines mentioning Low Search here? Thanks.

  4. Nick 30 Mar 2014 14:08

    Ok - For the results page, including a search for tags?

  5. Low 30 Mar 2014 14:09

    Yes please.

  6. Nick 30 Mar 2014 14:14

    (0.033875 / 10.16MB) Module Tag: Low_search/results
    (0.048177 / 12.03MB) Calling Class/Method: Low_search/results
    (0.069840 / 13.22MB) Low Search: Applying Low_search_filter_tags
    (0.069840 / 13.22MB) Low Search: Applying Low_search_filter_tags
    (0.070633 / 13.22MB) Low Search: Filters found no matches, returning no results
    (0.169577 / 20.85MB) Calling Extension Class/Method: Low_search_ext/channel_entries_query_result
    (0.523550 / 27.13MB) Tag: {exp:low_search:form result_page="blog/search" form_class="custom" form_id="search"}
    (0.523738 / 27.13MB) Module Tag: Low_search/form
    (0.523801 / 27.13MB) Calling Class/Method: Low_search/form
    (0.524343 / 27.14MB) -> Class Called: Low_search

  7. Nick 30 Mar 2014 14:15

    Also at the start:

    (0.013850 / 10.05MB) Snippets (Values): FALSE|blog/search/eyJyZ......

  8. Low 30 Mar 2014 15:49

    Okay, looks like {tag_id} is not supported in the tagger:cloud tag. Moreover, Tagger doesn't support any variable that will output a tag's ID. So, either use the tag name, or use the Query module. Something like this:

    {exp:query sql="SELECT tag_id, tag_name FROM exp_tagger ORDER BY tag_name ASC"} 
    <label>
    <input type="checkbox" name="tag_id[]" value="{tag_id}"{if tag_id IN ({low_search_tag_id})} checked{/if}>
    {tag_name}
    </label>
    {/exp:query}


    Using the query module should be better for performance.

  9. Nick 30 Mar 2014 18:10

    Thanks, Low. Using the query modules works a charm.