Based on some conditionals, I want to collapse specific cells in an RG.
I have a Group ‘Product’ that takes up the entirety of the cell (width / height) and based on conditions I remove it’s visibility, but even when the Group Product is not visible, the cell is still taking up space (see cells 1 & 2 below).
I believe this is due to the set up of the RG, where I have a min width / height of 250 px for each cell, hence why the cell isn’t collapsing when I remove the visibility of the Group Product in the cell.
The problem comes when i set the RG cell min width / height to 0px (in order for the RG cell to collapse when Group Product isn’t visible), it essentially stacks all the cells on top of each other.
Why don’t you change the data source of the repeating group filtered off of the conditions? So instead of trying to hide things in the list, you don’t display them at all.
Masonry Grid - looked into this and ran into the same problem (see image below) where the cells overlap.
Filtering data source - this is the correct solution, however the problem I’m running into is converting a list of texts into a list of Products. Currently I’m get a list of text back from Algolia Search, then for each cell doing a search for a Product where unique ID = Algolia text.
Is there a way to convert a list of text to a list of Products (with conditionals)? I was playing around with Do a search for in the data source field but it wasn’t playing nicely.