Hi everyone, I'm new to this platform but I can't seem to find a way to do this. An example would be a news site where articles are displayed in order of date/time added. However, I might want to dynamically change the layout or style based on whether an article is "sport", "world news", "weather", etc.
In other sites I might have done something as simple as injecting a variable into the ID of an element for styling through CSS. Is something possible like this through the repeater? It seems that the layout requires all elements to display identically although I can't see any real reason why this must occur.
Assistance would be much appreciated!
Great question! On Editor X, you can modify individual repeater items using Corvid (our development platform) we have some exposed methods on the Repeater API.
You can find more information here: https://www.wix.com/corvid/reference/$w/repeater
If you have specific questions about writing the code, then we recommend that you use the Corvid Forum for help: https://www.wix.com/corvid/forum