[TYPO3-english] javascript

Stefan Reichelt eichelt at web.de
Fri Oct 4 15:14:00 CEST 2013


Hello Jim,

On 04/10/2013 14:26, Jim MacFarlane wrote:
> How do you use typoscript to embed a javascript function into the page
> headers?

You got several ways, all through your main PAGE [1] cObject.
The easiest being:
--
page.jsInline {
  10 = TEXT
  10.value (
/*
Some inline js code
several lines long.
*/
  )
}
--

Although you will need to look whether or not your sites PAGE cObject is
called 'page'. Properties are also explained in the reference [1].


Kind regards
Stefan

[1] http://docs.typo3.org/typo3cms/TyposcriptReference/Setup/Page/Index.html


More information about the TYPO3-english mailing list