New topic Closed topic
avatar image
1
How to filter a model based on multiple id's
By Created , last editted

Hi there,

I have a web page that displays a list of records based on a collection. I created a multi select filter that show/hide rows and this is working. 

But now I have to filter the collection in the back-end. So for example: Select record where Id in ["1", "3", "5"].

I have managed to get the selected Id's into a collection/array, but how can I create the where .... in clause in Betty Blocks.

Thanks for help


Hi there,

I have a web page that displays a list of records based on a collection. I created a multi select filter that show/hide rows and this is working. 

But now I have to filter the collection in the back-end. So for example: Select record where Id in ["1", "3", "5"].

I have managed to get the selected Id's into a collection/array, but how can I create the where .... in clause in Betty Blocks.

Thanks for help

  • Avatar image
    I have the same issue but with Liquid that BettyBlocks uses. Jekyll's liquid has a "where" clause but the regular liquid syntax does not. Is it going to be implmenented anytime soon?
    By
  • Login to reply
Answers
Sort by:

This topic is closed.