[TYPO3-core] RFC: Bug #9608: Frontend Editing does not work anymore
Jeff Segars
jsegars at alumni.rice.edu
Tue Oct 21 16:54:48 CEST 2008
Oliver Hader wrote:
> 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
>
+1 based on reading and testing. Thanks for the quick fix!
More information about the TYPO3-team-core
mailing list