Dynamic search and filters
-
Hello David,
Thank you very much for the plugin! I think this might be the plugin that offer the greatest amount of customisation through shortcodes that I have ever seen. Indeed I was very impressed to imagine how much time you’ve put into the plugin, the documentation and the support. So thanks again.
Here is the situation. Within our team we always have to share a large amount medias for many different uses. So far we’ve been usb flash drives, cloud solutions, email… but the files always get lost and we have to resend them again and again.
So here’s the idea that we came up with. We want to build a database of all of our media, that will be easy to search filter and maintain. The upload part will be fully back-end which poses no problem. I’ve uploaded 50+ images and I was happy to see how easy it was to bulk edit, add tags… The download part though will be mainly front-end since we have many users that will need easy access.
To organise the different medias so far I am using:
– Attachment categories: Audio (Musics, Sounds), Images (Photo, illustrations, Vectors), Videos (Footage, Clips, Movies)
– Tags: defining all kind of attributes (portrait, landscape, places, people, colors…)Then I am trying to make the front end so that the user can:
– From a dropdown list choose the media type (categories)
– Type one or more keywords (related to tags)
– Hit search
And the gallery would display the matching results (category AND tags)At the moment I have managed to display the gallery based on the selected category in the dropdown. I have also managed to make a search box that works with the tags. I will add the code at the end of this post.
But I can’t find how to combine both together. I have even tried using the recently release developers’ version. Also so far the keywords (tags) in the search box have to be comma separated, is there a way to make it so that space and commas both work?
I’d also like to know if it is possible to make it so that the user doesn’t have to hit “search”. The filtered results would appear as soon as the user selects a category from the dropdown or types a word.
The following code also has a tag checkbox list, I’d like to experiment with that too. So that after the gallery is displayed the user can choose to fine-tune the search if there are too many entries by checking the tags.
Thank you very much.
Ghislain.<h3>Form</h3> <form id="attachment-category-form" method="post" action="."> <select name="form_categories[]" class="postform"> <option selected="selected" value="">All</option> <option value="images">Images</option> <option value="video">Video</option> <option value="audio">Audio</option> </select> <input id="mla-search-box" name="search-string" type="text" value="" /> [mla_term_list taxonomy=attachment_tag mla_output=checklist show_count=true pad_counts=true use_filters=true ] <input id="submit" name="submit" type="submit" value="Search" /> </form> <h3>Gallery</h3> [mla_gallery mla_terms_phrases="{+request:search-string+}" attachment_categories="{+request:form_categories+}" add_filters_to=attachment_tag]
https://www.ads-software.com/plugins/media-library-assistant/
- The topic ‘Dynamic search and filters’ is closed to new replies.