Searching with multiple keywords
-
Hi!
I’m using this code to provide search capabilities in my media library and provide a Photonic gallery as output from the result:<form id="mla-search-form" action="." method="post"> <input id="mla-search-box" name="search-string" type="text" value=""> <input id="submit" name="submit" type="submit" value="Search"> </form> [mla_gallery size=medium mla_alt_shortcode="gallery type=default style=masonry main_size=1920" s="{+template:({+request:search-string+}|a-bad-term)+}" mla_nolink_text="Enter a search value above to display images." mla_output="paginate_links,prev_next" mla_link_href="{+page_url+}?search-string={+request:search-string+}"]
There are two issues I haven’t found a way to solve:
1. I can only enter one keyword to get a successful search, how should I change the code to get a search with combination of keywords, either “key1 OR key2”, or “key1 AND key2” ?
2. How can I restrict the search to only include specific parts of media file information, like e.g. Title, Filename but nothing else?
Thanks.
The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Searching with multiple keywords’ is closed to new replies.