Logo der TYPO3 Usergruppe Leipzig

Wer in einer eigenen Extension JavaScript verwenden muß oder will kann mit dieser Function die JS-Files in den Seitenheader zur Laufzeit der Extension einbinden

php
  1. function includeJavaScript() {
  2. $js .= '<script src="'.t3lib_extMgm::siteRelPath($this->extKey).dirname($this->scriptRelPath).'/JS-Verzeichnis/js-file.js" type="text/javascript"><!-- //--></script>';
  3. $GLOBALS['TSFE']->additionalHeaderData[$this->extKey] = $js;
  4. }
  5.  
  6. //Aufruf der Funktion:
  7.  
  8. $content=$this->includeJavaScript();
Autor:

TUGLE TERMINE

Wir sehen uns am 24. Juni 2013 bei mellowmessage.
TYPO3-Usergroup Leipzig und PLUSPOL interactive laden ein:
TYPO3-Usergroup Leipzig und mellowmessage laden ein:

TYPO3 NEWS

Update on the user experience planning taking place at the TYPO3 Neos Code Sprint May 2013.
Building upon the ideas of the TYPO3 CMS team for an improved team structure, the TYPO3 Neos / TYPO3 Flow team also worked on a more effective and scalable structure for their own team.
The development of the next LTS (Long Term Support) Release of TYPO3 has begun! Get to know the Roadmap, the Umbrella Goals, the Release Manager and how to get more information.