Bug #25258
closedMedia object should respects moveJsFromHeaderToFooter=1
100%
Description
If you set config.moveJsFromHeaderToFooter=1 in your TS template, and add a Media object, such as a youtube video, the swfobject library is correctly added at the bottom of the page, but the code calling the swfobject replacement is added inline at the same place as the media object.
This results in the javascript error "swfobject is not defined" and the media not appearing on the page.
This is due to the fact that the inline code is added without using $GLOBALS['TSFE']->getPageRenderer()->addJsInlineCode(), while the library is added with $GLOBALS['TSFE']->getPageRenderer()->addJsFile().
(issue imported from #M17868)
Files
Updated by Mr. Hudson over 13 years ago
Patch set 1 of change I971ebb2c31568e40a3209dfcf7871010e830565e has been pushed to the review server.
It is available at http://review.typo3.org/1547
Updated by Oliver Hader over 13 years ago
- Category changed from Communication to Frontend
- Status changed from New to Resolved
- Assignee set to Oliver Hader
- Target version changed from 0 to 4.5.3
- % Done changed from 0 to 100
Submitted for TYPO3 4.5.3 and 4.6-alpha1
Updated by Oliver Hader over 13 years ago
- Status changed from Resolved to Closed