How to add custom tags to rich text field in SDL Tridion?

风流意气都作罢 提交于 2020-01-06 16:23:05

问题


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

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

This triggers the error

Field 'text' contains invalid markup

How do I allow such custom tags?


回答1:


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.

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



来源:https://stackoverflow.com/questions/9613598/how-to-add-custom-tags-to-rich-text-field-in-sdl-tridion

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!