Can anyone point me to some rules to follow when using using Rich Text Fields on Tridion Components? I notice that you can enter mark up directly on the Source tab, but if you enter incomplete html then tridion completes it for you, as follows:
<!--Enter this-->
<td>test</td>
<!--And it becomes this-->
<table>
<tr>
<td>test</td>
</tr>
</table>
If you enter invalid markup, then you get a Validation Results popup telling you that your syntax is invalid:
<!--Generates Validation Results popup -->
<badtag>
It seems that there is no problem with adding attributes like id and class to the RTF html, as long as the HTML is valid, but what is everyone else's experience? Can anyone point me to some additional best practices for what I should and should not try & do in a Component RTF field?
If you're only looking for adjustable text options, such as italics or bolding, use the Rich Text format. When you just want text and no other options, you can use the Plain Text format. However, there are a few more things you should know about the 3 different email formats and when to use them.
The default character limit for long text area and rich text area fields is 32,768 (32 KB). The maximum character limit for long text area and rich text area fields is 131,072 (128 KB).
(1) Text that includes formatting commands for page layout such as fonts, bold, underline, italic, etc. It may also refer to a multimedia document that can include images, audio and video. See rich media, multimedia and HTML email. (2) Microsoft's Rich Text format.
Great Question. The best practices depend on client to client, at least based on my experience with Tridion.
I have seen some clients who are very comfortable and doing more in RTF fields (almost building everything like data capture forms -- jeeez..), and seen some clients who are not very comfortable with editor (e.g.; copy and paste from word doc etc..).
I have not seen a best practice document and I don't think one fits all as this depends on organization or agency skills and comfort.
As rule of thumb, XHTML complaint is a must and that's what Tridion RTF editor does(good thing). That is the reason why you noticed the cleanup of valid/invalid html format.
This below link from Alvin touches some of the topics, but may not be exactly what you are looking for.
http://www.tridiondeveloper.com/rich-text-format-area-css-classes-vs-custom-xml-nodes
If you find one, please do share with us. I am looking for one as well. :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With