Filtering Gallery Display
-
Hello David,
I hope you can help me with two more difficulties.
1) I’m now very happy with the way I’ve got my MLA Gallery to display but I would like to give users the option to filter results by attachment_category.
The simplest way would be for me to have a drop-down into which I can include the att_cat options I want to. When the user selects an att_cat from the drop-down and clicks GO, the gallery displays the product images in that attachment category.
I’ve read a number of related support threads but cant seem to get any of the suggested solutions to function correctly.
Here’s the sort of thing I’m trying to do…
Please select an Attachment Category value: <form id="attachment_category" method="get" action=""> <select name="attachment_category" class="postform"> <option selected value="Spirits">Spirits</option> <option value="whiskey">Whiskey</option> <option value="liqueurs">Liqueurs</option> <option value="cognac">Cognac</option> </select> <input type="submit" id="submit" name="submit" value="GO"> </form> [mla_gallery attachment_category="{+request:attachment_category+}"]
You can see the results this achieves here: https://www.winework.com/print-image-library/
The password is your surname.
As you can see, it seems to be displaying all images, not the att_cat. Then, when a new category is selected, it seems to be searching through post archives!
I’m confused again… any clues?
2) If you take a look at the Product Image Gallery, it seems to be loading really slowly. I’m on a fibre connection and it is taking up to 18 seconds to return a page.
Can you suggest anything that might be clogging the works?
Thanks again for any assistance you may be able to provide.
- The topic ‘Filtering Gallery Display’ is closed to new replies.