如何在 SDL Tridion 中向富文本字段添加自定义标签? [英] How to add custom tags to rich text field in SDL Tridion?

查看:34
本文介绍了如何在 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.

这篇关于如何在 SDL Tridion 中向富文本字段添加自定义标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆