Since the MixitUp released a new version of their plugin MixitUp3 I started a new series of the tutorials. Please, check up a new tutorial on https://mixitup-webflow-tutorial.webflow.io
Lately many users were asking about more advanced filtering function. I was able to create an example and tutorial which let you filtering your content by several options: type, size, color, etc, etc…
You are welcome to clone this tutorial and use it for your projects. But DON’T FORGET that using MixitUp for non-personal projects required PAID LICENSE.
Tell me if I got you correct. You want to filter results and then you want ot have a possibility to show this results as a “gallery” view OR “list” view.
Right?
Hi Anna,
Yes, that is correct, and to show either view, I’d like to use tabs.
e.g.
TAB 1: Grid View
TAB 2: List View
In other words, both tabs will feature the very same content - even before any filtering is applied - one in grid view and the other in list view.
However, as you’ll notice yourself if you try to use the tabs widget with mixItUp plugin, you’ll only get it to work on one tab, while the other one(s) will look empty. I tried to implement the system suggested by this guy http://codepen.io/anon/pen/aNWwZL but I just could not get it to work.
why use tabs, when you can use buttons and switch between the views instead?
because tabs use two different content elements, the use of mixitup is a bit misleading, isnt it?
maybe i m wrong :D. but imho buttons would do the trick for view switching…
I’d like to use tabs as I found a piece of code which I’d like to implement and that will allow me to keep the previously selected filtering options when switching between views. This is the piece of code I’m referring to: javascript - MixItUp issue with Bootstrap Tabs - Stack Overflow (you’ll need scroll a little down the page to view it).
But maybe this can be done with buttons too, as you suggested…
Thoughts?
PS: Not sure if you know this already but when checking out the structure in web flow designer, please note you’ll have to switch display mode for .mix from hidden to block. This is because in order to function, the mixItUp plugin requires the .mix item to be hidden.
Next, within the script beware of using Upper OR Lowercase. Your #id is named “container” but you use the script with the syntax “Container”. This doesnt work because its case-sensitive.
I m at work in 2 hours so there I can investigate a bit more. Going to have breakfast right now ;P.
Regards
And could you make a “cloneable” version of your site?
I cant make changes to the java/jquery and publish it, so thats hard to make some changes in order to get your problem fixed.
Next thing:
If you press “TableButton”, the Layout will change - but it wont change back unless you have another button, that will fix that.
And:
You have flex-box options activated but I cant make changes to the width of the .mix.table class, cause its a flex-child. Maybe thats another problem.
I also think that there is some jquery script within your site that does not belong there, cause its from the advanced select field elements example from sabanna. But thats just some minor fact.
AND you ll have to add .classes to your .mix element (table & list).
And you ll have to create a second button with an id of #full or whatever to switch between styles.
There is a jquery solution, so that you can switch with only one button but hey, first things first :).