Roots Discourse

Sage 10 - Filter Post grid - Ajax call, maybe with Barba.js?

Hey all,

I’ve got a post grid, say on the post type’s archive page. All those posts I want to user to filter with an filter bar (form). The filters would be taxonomy based.

Now, I know I can create a render query with jQuery and Ajax. But since I don’t want jQuery just for this PLUS I now work with Barba.js for the page transmissions and that rocks! I was wondering if Barba.js can be used for fetching the filtered posts and for the “load more” button.

Does anyone know if this would be a good approach or a better approach or even if I should stick to the jquery approach?

Cheers!

1 Like