Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rules for Rich Text Field usage?

Tags:

tridion

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?

like image 497
Mr Smith Avatar asked Jan 18 '13 14:01

Mr Smith


People also ask

Should I use rich text or plain text?

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.

What is the maximum length of a text field in Salesforce?

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).

What does it mean to use rich text?

(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.


1 Answers

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. :)

like image 73
Ram G Avatar answered Oct 02 '22 11:10

Ram G