Project

General

Profile

Actions

Bug #25258

closed

Media object should respects moveJsFromHeaderToFooter=1

Added by Alienor.net over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Frontend
Target version:
Start date:
2011-03-04
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

Actions

Also available in: Atom PDF