JS libraries in the BE

Posted by & filed under TYPO3.

There are some new functions that load JS libraries: $this->doc->getPageRenderer()->loadPrototype(); Loads prototype if it wasn’t loaded already $this->doc->getPageRenderer()->loadScriptaculous(); Loads Scriptaculous, if it wasn’t loaded already $this->doc->getPageRenderer()->loadScriptaculous(‘effects,dragdrop’); Loads Scriptaculous with modules $this->doc->getPageRenderer()->loadExtJS(); Loads ExtJS. This function also accepts two parameters: if first is set to true, ext-all.css will be loaded, if second is set to true,… Read more »