Help with search functionality
-
I have reviewed several of the posts regarding the search functionality. I have created the following:
<form id="mla-search-form" action="." method="post" class="row"> <select id="mla-search-box-division" name="search-division"> <option value="0">Division Search</option> <option value="Worldwide Group">Test Division</option> </select> <input id="mla-search-box-category" name="search-tag" type="text" placeholder="Category Search" /> <input id="submit" name="submit" type="submit" value="Search" /> </form> [mla_gallery orderby=date order=desc post_mime_type=application/pdf post_parent=all s="{+template:({+request:search-tag+})+}"] [mla_gallery orderby=date order=desc post_mime_type=application/pdf post_parent=all s="{+template:({+request:search-tag+})+}" columns=4 mla_caption="{+title+}" size=icon link=file mla_nolink_text="Sorry. There are no results for your search. Please try your search again."]
To explain:
1) Disregard the select box as I have not even started trying to make this work. I’m only looking at the input at this point. The end goal is to have a search feature that can search on Att Category, Att Tag, or both together.
2) I have created a test PDF with Att. Category = “Test Category”
3) When I first view the page, the PDF displays as it should by default.
4) Entering “Test Category,” “Test”, “test”, or any kind of combination returns no results. I added Att. Category = “test” as well to see if this will match but it does not. The result of any search returns the nolink message.
- The topic ‘Help with search functionality’ is closed to new replies.