[TYPO3-english] Javascript at end of the document

Steffen Gebert steffen.gebert at typo3.org
Tue Apr 12 13:02:02 CEST 2011


Hi,

On 12.04.11 11:32, Enrique Moreno Tent wrote:
> Hello guys. Im trying to add this piece of code at the end of the document:
>...
> So far the only option i've encountered is writing it directly into the HTML
> template, but I was wondering if there was a more Typo3-way to do it with
> typoscript.


I would say

page.includeJSFooterlibs.jquery = 
//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js
page.includeJSFooterLibs.jquery.external = 1

page.jsFooterInline.10 = TEXT
page.jsFooterInline.10.value = window.jQuery || document.write('<script 
src="js/libs/jquery-1.5.1.min.js">\x3C/script>')

See TSref:
http://typo3.org/documentation/document-library/references/doc_core_tsref/4.4.0/view/1/6/#id2629897

Kind regards
Steffen

-- 
Steffen Gebert
TYPO3 v4 Core Team Member

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org


More information about the TYPO3-english mailing list