TYPO3: Raw HTML in tt_news records
When trying to embed a video in tt_news I sadly came to the conclusion this was in no way posible. There are a few extension to embed YouTube video in tt_news but since my video was from another website I was out of luck.
I wrote an extension to insert raw HTML into a tt_news record. Just install the extension and place the ###HTMLCODE### marker into your tt_news template. Should work fine ![]()


1. Did you try rgmediaimagesttnews in conjunction with rgmediaimages? The only issue here is the use of mootools than Prototype for JavaScript library when doing slideshows.
2. If you want the videos in the RTE itself, you’ll need to allow the object and embed tags in the RTE. Here’s a sample.
Sample TSConfig for adding custom HTML tags to the TYPO3 RTE.
# MLC 20090116 Thompson Rueters PR tags
RTE.default.proc.allowTags := addToList(chron,org,orgid,money,person,location)
RTE.default.proc.entryHTMLparser_db.allowTags := addToList(chron,org,orgid,money,person,location)
RTE.default.proc.entryHTMLparser_db.tags.chron.protect = 1
RTE.default.proc.entryHTMLparser_db.tags.org.protect = 1
RTE.default.proc.entryHTMLparser_db.tags.orgid.protect = 1
RTE.default.proc.entryHTMLparser_db.tags.money.protect = 1
RTE.default.proc.entryHTMLparser_db.tags.person.protect = 1
RTE.default.proc.entryHTMLparser_db.tags.location.protect = 1
In your case, remove the custom HTML tags that are above and replace with object and embed. I’m not sure if there are other tags needed, but I think not.
Good luck
Hai Michael,
Thank you for your reply.
1) Yes, I did try these. In fact, I use them a lot but these extensions are only useful when you have an actual flv file or a path to the a flv file. In my case I only had a embedcode without a flv path.
2) I tried this ons as well but no luck, I’ll try it again within a few days (a bit busy at the moment).
I’m curious if someone can manage to embed the code without the extension. So here it is:
http://www.l1.nl/popups/mediaplayerpopup/_pid/comm/_rp_comm_lsvideoId/1_3339520/_rp_comm_operationId/1_2
Embedding videos (including Youtube) is really easy with tinymce_rte. Give it a try. You just have to load the plugin “media” and add the button with the same name.
I have just started tinkering with typo3 for a few hours… (so please excuse my newbness) – How do you add the ###HTMLCODE### marker to the template?
Hi Matt,
Are you using the default tt_news template? Or did you create a custom one?
In both cases you can just insert ‘###HTMLCODE###’ into you HTML template. The default template is located in /typo3conf/ext/tt_news/pi/tt_news_v2_template.html
In strongly recommend though you use a custom template and create one in your fileadmin folder. This way you won’t lose your changes during an update. You can link tt_news to your custom template by defining it in the flexform of the plugin or by TypoScript in your settings.
This is an example for a tt_news template regarding the single view:
http://www.typo3-addict.com/wp-content/uploads/2009/06/example.txt
Cheers, Maarten
I can’t get it to work, somehow. I installed the extension and I’m able to see the window ‘Instert HTML Code’, however whatever I put into it, it is not being published/displayed. I gotta apologize for bein’ kindofa newbie though.
I’d be happy about any kind of feedback/help
regards
arndt
pleaaaaase help….!
Arndt, I emailed you… I was on holiday.
hey, sorry I was on holiday too. will try to get it to work today. will keep you posted regarding news. thanks for your effort maarten
regards arndt
You can configure DB-parser and tt_news inner parse function to allow any tags.
So please add that to root page TS (for proper DB saving):
RTE.default.proc {
allowTags := addToList(object,param,embed)
allowTagsOutside := addToList(object,embed)
entryHTMLparser_db.allowTags < RTE.default.proc.allowTags
}
lib.parseFunc_RTE.allowTags := addToList(object,param,embed)
and configure tt_news with typoscript:
plugin.tt_news {
general_stdWrap {
parseFunc {
allowTags := addToList(object,param,embed)
}
}
}
works great!
easy install, no extras needed, plain and simple like I love it
THX !