如何在 SDL Tridion 中向富文本字段添加自定义标签?

问题描述:

在 SDL Tridion 2011 SP1 中,我希望允许在富文本字段 (RTF) 中使用自定义 XML 标记(节点),例如

In SDL Tridion 2011 SP1, I want to allow custom XML tags (nodes) inside rich text field (RTF) such as

<dynamicVariable name='ABC'></dynamicVariable>

这会触发错误

字段文本"包含无效标记

Field 'text' contains invalid markup

如何允许此类自定义标签?

How do I allow such custom tags?

在 [Tridion]\web\WebUI\Core\Controls\FormatArea\TcmXhtml 下有一个名为 TcmXhtml.Config 的文件,您可以在其中指定 Tridion应该以 RTF 格式接受.

There is a file named TcmXhtml.Config under [Tridion]\web\WebUI\Core\Controls\FormatArea\TcmXhtml where you can specify additional block tags that Tridion should accept in RTF.

请记住,富文本字段符合 Xhtml 等标准是有充分理由的.

Do keep in mind that there's a good reason why Rich Text fields comply to standards like Xhtml.