I am wondering if it is possible to somehow output different styles for odd and even items in the repeater listing. We would like to create a layout where image position alternates between left and right for the items listed.
I'm afraid not. Repeaters repeat the exact same code over and over, so you couldn't have different sections alternating. You could create a static template though, without repeaters, where you have a present number of sections using title, description and image tags and you just always have 2 of each type or 3 of each type, etc rather than being able to add new sections as needed.
You could create a template and put each section (odd and even) in its own repeater.
Create 4 or 5 of each repeater (alternating), and simply delete however many you won't be using within the interface when the time comes.
True, they won't alternate though. It would still be something like Odd, Odd, Odd, Even Even Even, Odd, Odd, Odd, Even, Even, etc
The repeaters wouldn't be there to actually repeat. They'd simply provide a means to "delete" sections.
So if someone only wanted to use four sections, it'd still be Even, Odd, Even, Odd, Deleted, Deleted ,Deleted, Deleted.
Design for maximum usage and delete what isn't used within the interface.
OK, this confirms my assumption. Thank you both!
I'd like to add a feature request for some kind of "zebra" or odd/even support in repeaters. I've had a number of designs given to me by designers that I work with that need some type of odd/even support, usually to alternate the image alignment with each entry in a repeater. I usually have to tell them no, since the solutions mentioned on this thread really don't work for most clients. It's a little thing, but it would add a ton of flexibility with what we can do with templates.
I've seen requests for this feature dating 3 years ago, I also would like to see this feature for exactly the reasons described in this thread. To me it seems like a feature that can be built with not too much effort and it would add great flexibility to the creation of templates.
So, Campaign Monitor: Are there any plans to implement such a feature?
@thermalcreative and @markwittens, I just wanted to confirm that while this isn't a feature we're currently planning, we're recording every vote. These votes are always taken into account as future updates are planned, so keep them coming.
I'd like to add a request for this feature...
Thanks, allyelle - it's noted. Welcome to the forums, btw :)
+1 for this feature as well.
It would really allow for templates to not look as much like a template.
@trexart - thanks for your vote, I've just recorded it for you.
I have odd/even repeater blocks in a template, but I can't drag/drop an 'odd' block in between 2 'even' blocks.
+1 for this.
We've recorded your vote.
From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that drive real business results.Get started for free