Is it the product section? From My understanding the way to alternate dynamic content is to set the limit on the dynamic list
and then add another dynamic list and do the same. Start at 2 limit 1 and so on.
I think you can have a maximum of 10 dynamic lists on one page.
if there is a code way I do not know it. All of your items in a dynamic list have the same CSS styles applied this is the only way I know to be able to alternate in webflow
Hey man, that is not what I was trying to solve. Basically, the issue is that I can’t figure out how to target the two elements using :nth-child(even). I have the layout itself alternating just not the “heading and lightbox.”
Great solution! To alternate layouth with the same CMS item, I repeat the section as items I need. In settings each one Limit Items to: Start at 1 - Limit at 1, and filter by counter, set 1 to 4.
By the way, this is no longer needed.
Collection Lists have alternating style states available in the state dropdown, so you can do this all in the designer.
Set your collection item as Flex, aligned horizontally
Place your two inner items, your text div and your image div inside. pad, margin, style as desired
Click the Collection Item, and click in the states dropdown- the same place you’d set e.g button hover states. Select Even items.
Now reverse your flex direction in the styles.
Your odd rows will show e.g. image, then text
Your even rows will reverse that, showing e.g. text then image