In addition of these filters, I would like to let the user sort the items by the “newest”, and the “price” when they click on a button. So I try to use a workflow with custom state and when they click on “sort by the newest”, I display data in the RG sorted by creation date.
However, when I do that, my other filters (on the picture above) doesn’t work. The “bad” solution would be to duplicate my condition in every workflow so that filters would work.
But is there any simple solution to sorted by a data that is already filtered like my RG ?
I’m fairly new to Bubble.io but I’ve just tried to recreate what you’ve done and I have all the filters working with the sort by newest / price / colour etc by adding a condition to the RG "when [your sort] input is chosen, do a search for items:sorted by [whatever you want]. Just copy the data source from your RG that include your filters and paste it into that above ^. Do it for every sort you’d like.
May I ask why you’re searching a database to filter results depending on your page size? Surely no matter what size the page is you’d want the same results being shown?
What filters would you not want a mobile version to have that you want a PC version to have? Trying to understand why you’ve set it up the way you have so I can give you the best way of doing it.
I’m with you - would it not have been easier to do it the way Bubble intended and use the mobile version aspect in the page settings so when a user goes on that page it automatically shows your mobile version?
Referring to Bubble documentation this way would be better performance wise.