Join the Webstudio community

Updated 9 months ago

Filters

At a glance

The community members are excited about the new "Enable users to build searches and filters" feature released by the team. They are discussing the possibility of a tutorial, with some suggesting a video format to demonstrate the feature's capabilities, such as creating a job board with Airtable. The discussion also touches on the complexity of the logic involved, with some community members exploring alternatives to the ternary operator, such as if/else statements or using a specialized UI for building queries. There is no explicitly marked answer in the comments.

Useful resources
Hi team! I saw that you released "Enable users to build searches and filters" yesterday. Do you plan to do some tutorial about this new feature?

congrats for you work! Cannot wait for the coming CMS Feature πŸ˜‰
1
O
M
J
12 comments
Yes! Not sure about the format yet: docs, video, both?
@John Siciliano wdyt
A video to start would be great in order to see what it can be done. I'd like to try a little job board with Airtable and a search and some filters. It could be a good example to start.
Okay cool stay tuned!
Thanks a lot for your great tutorial John πŸ™‚

>> https://youtu.be/n5tG2j6_4dw?si=vwC3a1oytKEov020

You give me some motivation to create some content in french!
Do you think it would be possible to use if/else instead of tertinary?
Something needs to be done to simplify logic. While ternary works for one off stuff, nesting will get quite complicated quickly
Yes, we need to consider options for a more complex logic scenario @TrySound
if/else will not help much with constructing huge url query
passing options into json body helps more when supported
We can't avoid it if an api requires a big url query
otherwise we need a specialized UI for building queries and such
maybe we need
like some fetch-like libraries split "query" into separate option
Add a reply
Sign up and join the conversation on Discord