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

Support archive

Search Text Input with DevDemon Tagger

Erika 30 Jan 2015 16:19 question, complete

Hello, I'm trying to create a search text input using Low Search and DevDemon Tagger. I looked at the previous comments regarding this but it doesn't match what I'm trying to do...at least that's what my limited knowledge is telling me :).

I have 1 channel with a tagger channel field (multiple tags entered into that filed). What I'm trying to do is have the user enter a keyword and if that keyword matches one of the tags within the channel, then only display those entries that match the keyword/tag. I hope that makes sense. Also, I'm not sure how the results page should look since it will be an entries loop within a loop...I think. Can you please help me out? Below are links to my code and versions I'm using.

EE 2.9.2
DevDemon Tagger 3.2.1
Low Search 3.5

Keyword Search Code: http://pastie.org/9874124
Results Code: http://pastie.org/9874146

Replies

  1. Low 30 Jan 2015 16:42

    Since you're using a keywords search targeting the tags, you're going to need the Keywords filter.

    - Set up a Collection and add weight to the Tagger field;
    - In your form tag, make sure there's an input field with name="keywords" (the input field in your current form tag doesn't have a name attribute);
    - Instead of using the channel:entries tag, use the Results tag to output the entries. The content of the tag pair can be identical to what you have already.

  2. Erika 30 Jan 2015 17:29

    I got everything to work! Thank you so much for your speedy response and help! I wish all developers were this awesome! :)