.. ================================================== .. FOR YOUR INFORMATION .. -------------------------------------------------- .. -*- coding: utf-8 -*- with BOM. .. include:: ../../../../Includes.txt .. _developers_methods_backend_template: Template ======== .. _methods_backend_template_moduletemplate_addJsFooterInlineCode: addJsFooterInlineCode() ----------------------- What does it do? ^^^^^^^^^^^^^^^^ The method is using the class of the TYPO3 API of the same name. Header ^^^^^^ .. code:: php /** * addJsFooterInlineCode(): Adds JSS-inline-code to the footer section of the page * * @param string name * @param string block * @param boolean compress * @return void */ public static function addJsFooterInlineCode( $name, $block, $compress ) Sample ^^^^^^ .. code:: php $name = 'leafletFooterInline'; $block = $this->mapLLjssLeafletFooterInline; $compress = 1; Netzmacher\Refresh\Compatibility\Backend\Template\ModuleTemplate::addJsFooterInlineCode( $name, $block, $compress ); Refresh ^^^^^^^ You can refresh your extension by find and replace. .. code:: php // Code from TYPO3 6.2 to 8.7 $GLOBALS[ 'TSFE' ]->getPageRenderer()->addJsFooterInlineCode( $name, $block, $compress ); // Code from TYPO3 6.2 to 9.x ModuleTemplate::addJsFooterInlineCode( $name, $block, $compress ); Move "$GLOBALS[ 'TSFE' ]->getPageRenderer()->addJsFooterInlineCode" to "Netzmacher\\Refresh\\Compatibility\\Backend\\Template\\ModuleTemplate::addJsFooterInlineCode"