[TYPO3-core] RFC: Bug #9608: Frontend Editing does not work anymore
Oliver Hader
oliver at typo3.org
Tue Oct 21 16:50:28 CEST 2008
This is a SVN patch request.
Problem:
Due to a change of loading JavaScript libraries in the back-end by a
commond handler function, the front-end editing does not work anymore
and shows the following PHP error:
Fatal error: Call to undefined method stdClass::loadJavascriptLib() in
t3lib/class.t3lib_tceforms.phpon line 5079
Solution:
In back-end the JavaScript resources of t3lib_TCEforms get added to the
HTML <head> tag by using [template]->loadJavascriptLib('file.js').
However, in front-end mode, there is no instance of the "template" class
available.
To solve this issue a new function loadJavascriptLib() was integrated to
t3lib_TCEforms that calls the template object in back-end disposal - and
in front-end disposal it gets overridden in t3lib_TCEforms_FE and adds
the JavaScript library to $GLOBALS['TSFE']->additionalHeaderData.
Bugtracker references:
http://bugs.typo3.org/view.php?id=9608
Branches: TYPO3_4-2, Trunk
olly
--
Oliver Hader
TYPO3 4.3 Release Manager
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009608.patch
Type: text/x-diff
Size: 2965 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20081021/ad102c85/attachment.patch
More information about the TYPO3-team-core
mailing list