WAIT: Component properties not working inside Array query loop filters

Hello,

I can’t get the Array querry loop filters working with component properties. In my case, I have a custom php function that returns an array containing a name, a type, and an array of post IDs.

I use the Array filters to keep only {query_array @key:’type’} == XXX, but when I connect the XXX to a Text property, or a Select property, the query stops working.

The fix is to simply make a query loop property and write the query filter by hand, but its a bit annoying having to repeat the same task for each type, when a simple select / text property would have sufficed.

Thanks for all the new features, been loving them.

PS: When I say the query ‘stops working’, I mean it doesn’t return anything anymore. Comment still present in the DOM. I would have loved using a :plain filter for the property, like for dynamic data, but alas thats not a thing afaik

Can you create a video or show us what your markup looks like?

Hi @nicohmje,

can you show the setup? I tried, but it’s not broken :thinking:

Thank you,
Matej

Sorry if my setup wasn’t clear.

Here are two screenshots of my setup in Bricks, and how it renders on a sample page:

As you can see, the first query loop returns an array of elements which have the ‘type’ key.

I can therefore apply a filter to the main query loop which will only return a specific type:

As you can see, it works very well on the front end.

HOWEVER:

If I make the whole thing a component, and connect the ‘Value 2’ field of the Results filter to a Text property (or a Select property), it doesn’t work!

(I added text showing the property’s value)