Hello everybody,
I've digged into Mailchimp API wrapper in PHP yesterday, created a template and tried to send a new campagin programmatically.
The knowledge base is totally silent about the usage of this feature through the API.
First of all, I have a structure similar to this one:
~~~~
<div class="content">
<div mc:repeatable="post" mc:variant="editorial content">
<h2 mc:edit="title00">Editorial Title</h2>
<img mc:edit="thumbnail00 style="max-width:600px" />
<!-- specific content -->
</div>
<div mc:repeatable="post" mc:variant="regular content">
<h2 mc:edit="title00">Regular Title</h2>
<img mc:edit="thumbnail00 style="max-width:125px" />
<!-- specific content -->
</div>
<div mc:repeatable="post" mc:variant="sponsored content">
<!-- specific content -->
</div>
</div>
~~~~
I saved the template, manually created a new campaign an I was able to add new sections with the variant dropdown selector.
New sections are created accordingly the presentation variant I designed in the template.
In my use case, I have a variant amount of repeatable items in campaigns.
Many questions:
* what is the content structure for that? I tried html_thumbnail00+html_thumbnail01 etc. html_post:thumbnail00+html_post:thumbnail01 etc. but my campaign shows up only the first content (with default values)
* the mc:repeatindex appears nowhere in the documentation but is added somewhat to the campaign template when I create it manually; what's the purpose, is it mandatory?
* is it at least doable through the API? It is not officially written in any doc published in the KB, code samples or even the API itself
Thanks for the support :-)
Cheers