Select multiple Filters
Permalink Browser Info Environment
Hi there,
Is it possible to make multiple tags selectable?
For example,with the attached sample, I'd like to be able to select multiple tags to narrow down the search.
Is it possible to make multiple tags selectable?
For example,with the attached sample, I'd like to be able to select multiple tags to narrow down the search.
Type: | Discussion |
---|---|
Status: | Archived |
Hi,
thanks for the quick reply! Out of curiosity, could you tell me how to implement the function, even if it's not the easy way?
thanks for the quick reply! Out of curiosity, could you tell me how to implement the function, even if it's not the easy way?
I may have oversell it, wasn't that hard.
Replace file:
packages/grand_gallery/blocks/grand_gallery/js_files/gallery-with-masonry.js
Toggle multiselect in line 61 and filtering method in line 64 (and/or).
Also change multiSelectEnabled variable in line 147.
I will implement this in package later, but no ETA for that.
You can beta-test it for now and notify me if you find any bugs:D
Replace file:
packages/grand_gallery/blocks/grand_gallery/js_files/gallery-with-masonry.js
Toggle multiselect in line 61 and filtering method in line 64 (and/or).
Also change multiSelectEnabled variable in line 147.
I will implement this in package later, but no ETA for that.
You can beta-test it for now and notify me if you find any bugs:D
$(function () { var GrandGalleryWithMasonry = (function ($, window, document, undefined) { var grids = []; var numberOfImagesAtStart = []; var numberOfImagesToReveal = []; var galleryRevealMethod = []; // Number of visible images after initial load / "Tag" click / "Show more" click var counter = []; var allowCheckingIfReachedBottom = true; var allowTriggeringClickEvent = true; var initIsotopeBlocks = function () { $('.js-gg-container-masonry').each(function() { var blockID = $(this).attr('data-block-id'); numberOfImagesAtStart[blockID] = parseInt($('.gg-container-'+blockID).attr('data-number-of-images-at-start')); numberOfImagesToReveal[blockID] = parseInt($('.gg-container-'+blockID).attr('data-number-of-images-to-reveal'));
Viewing 15 lines of 254 lines. View entire code block.
Hello Parasek
Thank you so much! You truly saved the day.
Your solution works wonderfully. After going down rabbit holes and testing different add-ons I was pretty much ready to accept, that selecting multiple tags is just not going to work.
Having such an easy adaption, is really nice. I’ll let you know if bugs should show up, but for now it seems to be working just fine. :)
Thank you so much! You truly saved the day.
Your solution works wonderfully. After going down rabbit holes and testing different add-ons I was pretty much ready to accept, that selecting multiple tags is just not going to work.
Having such an easy adaption, is really nice. I’ll let you know if bugs should show up, but for now it seems to be working just fine. :)
its not possible right now (at least not possible to make it easily).
From the beginning, it was designed to filter by only one tag.
Cheers