Subscribe to Acqal
Got Thoughts? Write Us!
Approved TYPO3 Agency
Acqal is an approved TYPO3 agency focusing on support, training and website migration.
This means that we...
- are available on TYPO3.org
- make substantial contributions to TYPO3 teams
- are registered as business members of the TYPO3 Association
- have completed more than four TYPO3 projects
- have proven our technical abilities with quality TYPO3 extensions
- use TYPO3 for our own website
Popular Blog Posts
Tech Tuesday Went Snowboarding at T3BOARD09
TYPO3 and Other Open Source WCM Systems Dissed Again
Automatic tt_news META descriptions via Acqal's extension aqnewsmeta
TYPO3, comments and Gravatar via Acqal's extension comments_gravatar
TYPO3 Extension cbstarter Version 1.3.2 Released
Sunday at T3BOARD09 in Laax, Switzerland
Not Good, Not Bad, Just Different
Increase TYPO3 Workspace Relation Limits
Getting Help With TYPO3
Looking into TYPO3 Webhosting?
Blog Topics
Virgil on Twitter

Recent Blog Posts
US Political Campaign Websites - The Basics
My Talk at T3CON10 Dallas - TYPO3 User jobs and Tasks
Dallas Barbeque Joint Reviews
T3CON10 Dallas
Acqal is Going Through Some Changes
Creating a MySQL Database for TYPO3 using CPanel
Acqal Promotes Biking and Families with World Vision
It's Official T3CON10-Dallas Web Site Launched! Join Us!
Create a simple "Contact Us" mail form in TYPO3
Configure TYPO3 for Localized Websites
Blog Archives
Allow Youtube and Custom HTML Tags in TYPO3 RTE
Social media is an important part of today's website user experience. By default though, TYPO3's RTE doesn't easily allow for including video. After a good bit of testing, Acqal offers the two tips to get videos into your RTE and showing on your website.
Add the following snippet to your root level page and storage folder Page TSConfig. These lines basically say "let these additional HTML be accepted for proper display in the TYPO3 backend."
RTE.default.proc {
# Allow embed (Youtube) HTML tags in the RTE
allowTags := addToList(object,param,embed)
allowTagsOutside := addToList(object,embed)
entryHTMLparser_db.allowTags < RTE.default.proc.allowTags
}
In your website root TypoScript template setup block, add the following snippet. This line tells the front-end RTE processor to display the additional HTML as intended.
# Allow embed (Youtube) HTML tags in the RTE
lib.parseFunc_RTE.allowTags := addToList(object,param,embed)
By keeping the above method for allowing Youtube videos into the RTE, you can apply the similar principal for custom HTML tags. Either replace the object and other tags above with your custom code or append ",customtag, customtag1, customtagN" to the allowTags or allowTagsOutside addlist to list functions.
An Explanation From TYPO3 Core TS
- Value modifications: The ":=" operator assigns a value to an object path by calling a predefined function which modifies the existing value of the current object path in different ways.
- The portion after the “:=”-operator and to the end of the line is split in two parts: A function and a value. The function is specified right next to the operator (trimmed) and holding the value in brackets (not trimmed).
- Function addToList: Adds a comma-separated list of values to the end of a string value. There is no check for duplicate values, and the list is not sorted in any way.
Reference
Keywords:
- typo3,rte,typoscript,tsconfig,youtube,flash,object,embed


Add comment
* - required field1. Why are you using ":=" instead of "="
2. Is "addToList()" actual TS or are you just saying to add your custom tag to the long list other typical allowed html tags such as p,span,div,...?
Per TYPO3 Core TS doc:
* Value modifications: The ":=" operator assigns a value to an object path by calling a predefined function which modifies the existing value of the current object path in different ways.
* The portion after the “:=”-operator and to the end of the line is split in two parts: A function and a value. The function is specified right next to the operator (trimmed) and holding the value in brackets (not trimmed).
* addToList: Adds a comma-separated list of values to the end of a string value. There is no check for duplicate values, and the list is not sorted in any way.
Ref: http://typo3.org/documentation/document-library/core-documentation/doc_core_ts/4.1.0/view/1/2/
The tags are `script` and 'form,select,input,textarea,option`.
This is very good website for typo3 developers to find the solution of their problems, but I didn't found the topic helpful in my case, I want to enable the strike tag in rte, I follow the whole procedure you defined and add del,strike in place of object,param,embed in your code, but that not enables the del or strike tags for me. Do you have any idea why it is not working in my case?
Thanks
In your page TSconfig.
If that doesn't work because the strike tag isn't being inserted, try this.
Thanks for your reply, I have tried it but still del and strike are not enable for me.
<a href="http://www.webhane.com" title="Chat">Chat</a>
Hey Admin! Thanks, Forever web pages..
Desde hace 5 años el Gobierno Municipal de El Alto y la Prefectura del Departamento de La Paz impulsaron <a href="http://www.sohbetnl.com" title="sohbet, chat odaları" target="_blank">Chat</a> un programa de Alfabetización Digital, la primera etapa del Programa consistía en implementar <a href="http://www.sohbetnl.com" title="sohbet siteleri, sohbet sitesi" target="_blank">Sohbet Siteleri</a> los laboratorios pues la gran mayoría no disponía de ellos, posteriormente se procedió a contratar estudiantes de Informática e Ingeniería <a href="http://www.sohbetnl.com" title="chat siteleri, chat sitesi" target="_blank">Chat Siteleri</a> de Sistemas para fungir como Docentes de Computación de dichos laboratorios, pero la curricula se limitaba al uso del Sistema Operativo (Windows) <a href="http://mirc.sohbetnl.com" title="Mirc indir, Mirc, Mirc yükle, Mirc sohbet, Mirc chat">Mirc indir</a> y el manejo de su suite ofimática.