Project

General

Profile

Actions

Bug #25258

closed

Media object should respects moveJsFromHeaderToFooter=1

Added by Alienor.net about 13 years ago. Updated almost 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 #2

Updated by Mr. Hudson almost 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

Actions #3

Updated by Oliver Hader almost 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

Actions #4

Updated by Oliver Hader almost 13 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF