I’m looking to create a CMS grid that shows projects. I’m looking at having it as an “uneven” grid, so the first column is (for example) 1fr and the second is 2fr, then on the next row this layout is reversed, or even something totally different…
This works fine for the current number of objects that we have in the CMS, but what happens to the layout if I add more? How does webflow know how to position the new content in the grid? If there a way to set up a small section of the grid and this then repeats for all subsequent content?
I hope this makes sense, but please let me know if it doesn’t!
I’ve got it (loosely) working however it isn’t much in the way of documentation for it. In the example you linked to it works by adding custom attributes that gives each CMS item its own span on the grid - however as you can imagine doing this for a collection that has hundreds of items in is a non-starter.
Any ideas as to how to get it to automatically assign spans?
Something along the lines of grid-item-1+every-nth-item?
[edit] Either I am using this wrong, or I have found a bug. This seems to work as long as the number of custom attributes you have set up matches the number of items being pulled in from the CMS.
For example if I have 10 items on my page, and 10 custom attributes then it loads fine. If however I have 5 items on my page, it doesn’t work.
I just don’t quite understand the syntax/math yet. When I draw this layout out by hand, I can quite easily see the pattern and where it repeats - but struggling to work that out at the moment.