MailChimp模板:嵌套的可重复变体? [英] MailChimp template: Nested repeatable variants?
问题描述
我正在构建MailChimp模板,并希望嵌套可重复的变体.像这样
I'm building a MailChimp template and would like to have nested repeatable variants. Something like this
-- Variant 1A
-- Variant 2A
-- Variant 2B
-- Variant 1B
-- Variant 3A
-- Variant 3B
-- Variant 1C
-- Variant 4A
-- Variant 4B
当我将mc:repeatable=""
和mc:variant=""
元素嵌套在另一个可重复/变量标记中时,它不起作用.内部重复项不会出现在编辑器中.删除内部的可重复/变量标签会使内容再次出现,但是重复内容块的能力明显丧失了.
When I nest mc:repeatable=""
and mc:variant=""
elements inside another repeatable/variant tag it doesn't work. The inner repeatables don't appear in the editor. Removing the inner repeatable/variant tags makes the content appear again, but the ability to repeat the content blocks is lost obviously.
这是代码的完整示例:
<tr mc:repeatable>
<td>
<table>
<tr mc:repeatable="rating" mc:variant="variant1">
<td>
<div mc:edit="text">
</div>
</td>
</tr>
<tr mc:repeatable="rating" mc:variant="variant2">
<td>
<div mc:edit="text">
</div>
</td>
</tr>
</table>
</td>
</tr>
有人能在MailChimp模板中嵌套可重复/变量块吗?
Has anyone been able to nest repeatable/variant blocks in a MailChimp template?
推荐答案
您不能将可重复项嵌套在可重复项中
You can't nest repeatable within repeatable
从MailChimp:
From MailChimp:
mc:repeatable属性定义了一个内容块,该内容块可以是 反复添加到模板.使用mc:repeatable时,请确保 使用适当的项目嵌套. mc:repeatable部分永远不应该 包含在mc:edit部分中.相反,嵌套您的mc:edit mc:repeatable块中的各个部分. 永不嵌套mc:repeatable 其他mc:repeatable区块内的区块,其他mc:edit区域内的区块 mc:edit区域,或mc:edit区域内的mc:edit图像.
The mc:repeatable attribute defines a content block that can be repeatedly added to the template. When using mc:repeatable, make sure to use proper nesting of items. An mc:repeatable section should never be contained within an mc:edit section. Instead, nest your mc:edit sections within your mc:repeatable blocks. Never nest mc:repeatable blocks within other mc:repeatable blocks, mc:edit areas within other mc:edit areas, or mc:edit images within mc:edit areas.
这篇关于MailChimp模板:嵌套的可重复变体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!