[TUTORIAL] MixItUp3 - Filtering, Sorting and PAGINATION

Hi again, @CasperKp!

In the code for the paginated filtering you are “calling” for the filtering function twice, with different parameters:
56%20PM

What you actually need is one call with both parameters together:

00%20PM

Hi @sabanna,

It works!

Thank you for the help! :smiley:

Best,
Casper

1 Like

nice solution… I try to also make it [TUTORIAL] MixItUp3 - Filtering, Sorting and PAGINATION - #13 by CasperKp

Hey Casper, your idea of filter is cool… please can you share again your preview with me… and give me the code to make the same…

thanks
Karel
I need it for this project: Webflow - Computationeel denken
alle lesopdrachten

Hi @KarelRosseel82… Sorry for the very late reply… Here is the preview if you still need it :slight_smile: https://preview.webflow.com/preview/mixitup-filtering-and-pagination?utm_medium=preview_link&utm_source=designer&utm_content=mixitup-filtering-and-pagination&preview=2973463a296376dc2ab5712c4c746ffc&mode=preview

Hi @sabanna,

I hope you can help me again :slight_smile:

The infinite scroll in my project works but the collection list only shows 40 items per page. I want it show infinite items on just one page (I’m aware of the 100 items limit). Do you have a solution? :slight_smile:

Here is my project: https://preview.webflow.com/preview/restaurantjob?utm_medium=preview_link&utm_source=designer&utm_content=restaurantjob&preview=0aff5884355a070abf43221782b4252f&pageId=5cbd9253ef4522372891a067&mode=preview

I created a separate topic where I showed a Workaround for Big collections:

Happy Webflowing :heart:

Hi Sabanna, how great there are people like you :guiño:… I followed the mixitup tutorial (http://mixitup-webflow-tutorial.webflow.io/multi-dimensional-filtering-for-cms-content) step by step. Everything is perfect. But I would like to have a search engine. Would it be possible to help me with that? Thank you very much in advance.
link of my website: https://www.microswiss.net/support

hi @Enny_Hidalgo, thanks for your post, I would recommend to create a new forum post about the search. Also Webflow has built in Site search

1 Like

Cool @cyberdave ! I will do so, thank you very much for the recommendation…

This looks great! How do I make the filter adjustments show up in the URL? I want to be able to link to all farms, for example, in a list that show farms, restaurants, artisans, and distributors.

Hi, @bgschust!

I did not provide the tutorial for that exact setup, however it is possible. Once you download all MixitUp package from the website (free for regular filtering and paid for multifilter) you will get the folder with demos. One of them providing the a script example that can be used for the functionality you are requesting.

1 Like

Good to know, I will see if I can handle the scripting. There’s also a Jquery plugin on CodeCanyon called UniFilter by Flgravity that I found after doing some searching. It might be worth a shot.

@sabanna I’m using this method to filter content for an FAQ page and it works very nicely. Although Since my content is quite long, I’m finding an issue when I have scrolled down to the bottom of my content and click on a new filter. Ideally I would want to be scrolled to the top each time I clicked a button but at the moment it doesn’t. Do you have a solution for this?

Here is my READ-only link: https://preview.webflow.com/preview/kats-gd-public-one?utm_medium=preview_link&utm_source=designer&utm_content=kats-gd-public-one&preview=0e01223717f13c729c5f0c6d13931308&pageId=5ef0c0266e8e1b6803a8f704&mode=preview

Hi, @steveshearer!

The workaround could be to add an anchor div with the ID and add that to the filter button settings (since it is a link. so, each time you click the button it will scroll to that div.

Shared with CloudApp

Hi @sabanna! :slight_smile: Your guides have been the Bible to me this past week. Really helping getting an integration going. Do you know any specific tips for how to attribute things so it all works when I port it to Shopify? This is a link to the Udesly cheatsheet that lists all the attributes Shopify can use - so far the porting works perfectly…
https://cheatsheets.udesly.com/shopify/shop
Just wonder how I get MixitUp hooked up to the collections there and use the Tags as the filtering options?

Hi, Jay!

I personally don’t have any experience with converting Webflow site to Shopify or using Udesly, so I can’t provide any advice here, sorry.

Ah ok, thanks @sabanna I understand.

Hi Sabanna,

I’m working on a page where I need to be able to filter items from a collection list.
I’m using Mixitup as I was following your tutorial.

Everything seemed well, but the filtering is not working. Whenever I click on one of the buttons to choose a category, all my collection list items are removed from the view. In the element inspector I see that the collection-list container gets a class added “mixitup-container-failed”. I read that it means that mixitup cannot find items for the category that’s being asked. However I checked and the data-filter attributes are matching the classes of the collection-list-items.

I would really appreciate some guidance if possible!

Here you can see the page on webflow designer: https://preview.webflow.com/preview/close-business-v2?utm_medium=preview_link&utm_source=designer&utm_content=close-business-v2&preview=8c1076bf485f5a939c236880e6ae91b5&pageId=5fb655a847016d24c6ec39a1&mode=preview

Here you can experience the “live” product: https://close-business-v2.webflow.io/demos

Hi, @djerrund!

First of all, the Preview link doesn’t work, for some reason, so I will show what I can see through the browser developer tools.

  1. when you create the dynamic filtering buttons, for some reason you put data-filter attribute on divs (actual collection items) AND on the buttons inside those items. So, when the user clicks on the button it triggers filtering by two parameters, where 2nd parameter (data-filter=“sdf”) doesn’t exist. You need to pick only one

  2. in your code snippet, that supposes to take care of categories converted to classes, you forgot to add an assertion for the categories that contain more than one word, which creates classes with space character (which is not valid by CSS standards).

Shared with CloudApp

Hi @sabanna!

We’ve loved following your tutorials so far, so easy to follow!

One issue a client has found is that when using the Mixitup pagination, once you click a number at the bottom of the page, the results change but the viewport doesn’t automatically scroll back to the top.

Is there a way that when a user clicks to view another page of results, the page is scrolled back to the top again?

Thank you!