Forum Academy Marketplace Showcase Pricing Features

Adverts in Repeating Group

Hi. Anyone managed to successfully implement the idea above? or is it even possible using bubble?

there was a thread on it but went silent… thanks

It will be quite hard to do something like …


etc as inserting something in the middle would be tricky - you could display something every x over the top, but that would hide the real data.

What you could do is have a hidden group in each RG cell, and only display it every x rows. If you had “Collapse height when hidden” on then it would expand out a single cell and have the advert above the group.

1 Like

I asked that question but I stopped using Bubble. I thought about something that I did not implement to see if it would really work. I don’t have at hand all the right names of parameters now but I’ll write here the idea and you see if it helps:

I remember it is possible to place as data on the cell of the repeating group a reference to an index of the result set. So, with that, instead of using currentItem use something such as currentItemId + (currentItemId / 5). This would allow you to show the right data on the cells because of the skipped ones. It has to be an integer division.

Then you actually could have two containers on the cell, one for advertising and the other for data. The one for adverstising should be visible only if the division of current cell id by the desired number has no remainders (and the opposite for the data container)