在此页面上:了解如何在您的电子邮件中插入可重复使用的可视化片段,自定义其可编辑字段,以及中断或保留其与原始片段的继承。
片段是可重复使用的组件,可以在跨Journey Optimizer营销活动、历程或内容模板的一个或多个电子邮件中引用。 此功能允许预先构建多个自定义内容块,营销用户可以使用这些内容块在改进的设计过程中快速组合电子邮件内容。 了解如何创建和管理片段。
使用片段 use-fragment
要在电子邮件中使用片段,请执行以下步骤。
-
使用电子邮件Designer打开任何电子邮件或模板内容。
-
从左边栏中选择 片段 图标。
-
此时将显示在当前沙盒中创建的所有可视化片段的列表。 它们按创建日期排序:最近添加的可视片段首先显示在列表中。 您可以:
- 通过开始键入特定片段的标签来搜索该片段。
- 按升序或降序对片段排序。
- 更改片段的显示方式(卡片视图或列表视图)。
- 刷新列表。
note NOTE 如果在编辑内容时修改或添加了某些片段,则列表将使用最新更改进行更新。 -
将列表中的任何片段拖放到要插入它的区域。
note caution CAUTION 您可以将任何 草稿 或 实时 片段添加到您的内容中。 但是,如果历程或营销活动中正在使用具有草稿状态的片段,您将无法激活该历程或营销活动。 在历程或营销活动发布中,草稿片段将显示错误,您需要批准它们才能发布。 -
与任何其他组件一样,您可以在内容中移动片段。
-
选择片段以在右侧显示相应的窗格。 从该位置,您可以从内容中删除片段或复制片段。 您还可以直接从片段顶部显示的上下文菜单执行这些操作。
-
在 设置 选项卡中,您可以:
-
如果需要,您可以使用原始片段中断继承。 了解详情
解锁后,您可以像任何其他组件一样进一步自定义片段,并使用 样式 选项卡。
-
添加所需数量的片段,然后 保存 您的更改。
管理片段中的条件内容 fragment-dynamic-content
在使用包含条件内容的可视片段时,请遵循以下准则。 了解有关动态内容的更多信息
- 丢失条件内容变量映射
- 电子邮件Designer中的兼容模式警告
- 电子邮件渲染不一致
正确构建您的电子邮件:使用多个片段和条件内容时,在电子邮件级别将每个片段直接添加到其自己的结构块中。 避免将包含条件内容的片段嵌套在其他也包含条件内容的已解锁片段中。
提前计划:在将片段添加到电子邮件之前,请确定哪些片段包含条件内容并相应地计划布局。 这有助于防止配置问题,并确保从一开始就保持结构干净。
仔细设计可重用片段:在创建将包含条件内容的片段时,请考虑如何使用它们。 如果片段需要嵌套在其他片段中,请避免向父片段和子片段添加条件内容。
疑难解答:如果遇到条件内容变体映射或兼容模式警告丢失的情况,请按照以下步骤操作。
- 检查您的电子邮件结构以查找包含条件内容的嵌套片段
- 通过在电子邮件级别将每个包含条件内容的片段移动到其自身的结构块中进行重构
- 保存并验证条件内容变体是否已正确恢复
使用隐式变量 implicit-variables-in-fragments
隐式变量增强了现有片段功能,以提高内容重用和脚本用例的效率。 片段可以使用输入变量并创建可在营销活动和历程内容中使用的输出变量。
了解如何在本节中使用隐式变量。
自定义可编辑字段 customize-fields
如果所选片段的某些部分已变为可编辑,您可以在将该片段添加到内容中后覆盖其默认值。 了解如何使片段可自定义
要自定义电子邮件中使用的片段中的可编辑字段,请执行以下步骤。
-
向您的电子邮件内容添加可自定义的片段,然后选择该片段以打开右侧的 片段 窗格。
-
片段中的所有可编辑字段都显示在 设置 选项卡的片段属性下。
在下面的示例中,可以编辑图像源和替换文本,以及“标题”/“子标题”字段和“更多信息”按钮URL。
-
将鼠标悬停在中心画布中的任何可编辑字段上。 该字段以绿色突出显示,单击它包含的文本时,会显示一个铅笔图标。
{align="center" width="80%"}
-
直接在中心电子邮件Designer画布上内联编辑字段文本。
note NOTE 要轻松找到内容中的可编辑字段,您还可以从右侧窗格中选择它们,但您只能在中心画布中编辑这些字段。 -
对于Text、Button和 Html 组件,电子邮件Designer工具栏还允许访问富文本格式选项 — 粗体、斜体、超链接等。
note tip TIP 默认情况下,在引入富文本编辑功能之前创建的片段的可编辑字段设置为纯文本模式。 要启用完整的格式选项,请使用 打开片段 按钮转到片段编辑器,单击 启用 以解锁富文本模式并 保存 片段。 了解详情 电子邮件Designer中的
{align="left" width="50%" modal="regular"}
-
您可以单击 模拟内容 以查看可编辑内容和样式呈现方式。 了解有关预览内容的更多信息
中断继承 break-inheritance
编辑可视片段时,将同步更改。 它们会自动传播到包含该片段的所有草稿或实时历程/营销活动和内容模板。
添加到电子邮件或内容模板时,片段默认进行同步。 但是,您可以中断来自原始片段的继承。 在这种情况下,片段的内容将被复制到当前设计中,并且更改不再同步。
要中断继承,请执行以下步骤:
-
选择片段。
-
单击上下文工具栏中的解锁图标。
-
该片段将成为不再链接到原始片段的独立元素。 可将其编辑为内容中的任何其他内容组件。 了解详情
锁定的片段 locked-fragments
如果片段被作者锁定,则解锁图标将灰显,并且无法用于中断继承。
锁定的片段在出现的所有地方均保持同步,从而防止了可能违反品牌标准或合规要求的本地编辑。
在本节中了解如何锁定片段。
This section contains structured knowledge intended to support interpretation, retrieval, and question answering related to this topic.
For complete understanding, this information should be combined with the documentation on this page. Neither source is intended to stand alone; the page describes the feature, while this section provides additional context that helps disambiguate terminology, intent, applicability, and constraints.
- TL;DR: This page explains how to insert reusable visual fragments into emails, customize their editable fields, manage conditional content in fragments, and break or keep their inheritance with the original fragment.
Intents:
- Insert a reusable visual fragment into an email or content template using the Email Designer
- Search, sort, and display the visual fragments available on the current sandbox
- Customize the editable fields of a customizable fragment
- Manage conditional (dynamic) content when using visual fragments
- Break or keep the inheritance between a fragment instance and the original fragment
- Use implicit input and output variables in fragments
Glossary:
- Visual fragment: A reusable component that can be referenced in one or more emails across Journey Optimizer campaigns, journeys, or content templates (product-specific)
- Break inheritance: Copying the fragment content into the current design so changes are no longer synchronized with the original fragment (product-specific)
- Locked fragment: A fragment locked by its author whose unlock icon is greyed out, so inheritance cannot be broken and it remains synchronized everywhere it appears (product-specific)
- Editable fields: Portions of a fragment made editable, whose default value can be overridden after adding the fragment to content (product-specific)
- Implicit variables: Input variables fragments can use and output variables they can create, usable in campaign and journey content (product-specific)
- Simulate content: Action to see how the editable content and styling render; also used to preview a fragment’s actual dynamic content with a profile that meets its conditions (product-specific)
Guardrails:
- You can add up to 30 fragments in a given delivery.
- Fragments can only be nested up to 1 level.
- Nesting fragments with conditional content is not supported: you cannot place a fragment containing conditional content inside an unlocked fragment that also contains conditional content (can cause loss of conditional content variant mappings, compatibility mode warnings, and inconsistent email rendering).
- You can add any Draft or Live fragment to your content, but you cannot activate the journey or campaign if a fragment with Draft status is used in it; at publication, draft fragments show an error and must be approved.
- If a fragment uses dynamic content and its default state is empty, it may appear blank in the Email Designer; the system uses the default variant as a fallback.
- When both the label and URL of a button component are made editable in a fragment, tracking reports show the URL instead of the button label.
- Locked fragments cannot have their inheritance broken (unlock icon greyed out) and remain synchronized everywhere they appear.
- Fragments created before the rich-text editing capability was introduced have editable fields set to text-only mode by default until rich-text mode is enabled.
Terminology:
- Canonical name: visual fragment — Acronym: n/a — variants: fragment, customizable fragment, locked fragment
- Synonyms: “break the inheritance” = “break inheritance”
- Do not confuse: “Draft” fragment status ≠ “Live” fragment status
- Do not confuse: synchronized fragment (inheritance kept, changes propagated) ≠ fragment with broken inheritance (content copied, changes not synchronized)
- Do not confuse: “Allow inheritance to be broken” (author setting to permit breaking) ≠ locked fragment (inheritance cannot be broken)
FAQ:
- Q: How many fragments can I add to a delivery? — Up to 30 fragments in a given delivery.
- Q: How deeply can fragments be nested? — Fragments can only be nested up to 1 level.
- Q: Can I use a Draft fragment in my content? — Yes, you can add any Draft or Live fragment, but you cannot activate the journey or campaign while a Draft fragment is used; draft fragments show an error at publication and must be approved.
- Q: Can I nest fragments that contain conditional content? — No. Nesting fragments with conditional content is not supported and can cause loss of variant mappings, compatibility mode warnings, and inconsistent email rendering.
- Q: Why does my fragment appear blank in the Email Designer? — If the fragment uses dynamic content and its default state is empty, it may appear blank because the system uses the default variant as a fallback; simulate the email with a profile that meets the fragment’s dynamic content conditions to preview the actual content.
- Q: What happens when I break inheritance? — The fragment content is copied into the current design, it becomes a standalone element no longer linked to the original fragment, and changes are no longer synchronized.
- Q: Why can’t I break the inheritance of a fragment? — It may be a locked fragment, whose unlock icon is greyed out; the author can later reset its behavior to Allow inheritance to be broken.