I have a blog page that needs some filtering and sorting functionalities. I’ve used tabs at the moment and added the collection inside each tab pane. Is this an elegant solution? Or would it greatly affect the performance of the page especially as the collection of posts grow?
Do you recommend a more elegant solution? I’m fairly new to web development and Webflow so I’d appreciate any guidance here.
hi @eli-webdesigner I have watched your video and consider it as nice problem worth to solve. Standard way how to do these things are API calls (req, res) but here is my solution (hack) using only JS in WF.
Hope you can get an idea from it or feel free improve this code. As video is large feel free to download it for later reference as I will delete it when cleaning Cloud space.
EDIT: Finsweet have some kind of filtering method as well (based on CSS classes) and I thing that is popular in WF community.
EDIT 2: I wasn’t happy when original w-dyn-item stayed in DOM and caused shift movement so I have add extra function to remove these and now in DOM stay only newly injected elements. It is a bit cleaner.