[TYPO3-german] JavaScript in Template einbinden
chris Wolff
chris at connye.com
Wed Jul 3 16:57:37 CEST 2013
Alternativ auch
page.jsFooterInline.10 = TEXT
page.jsFooterInline.10.value = try{Typekit.load();}catch(e){}
oder auch jsInline
alle javascript einbindungs möglichkeiten findest du hier:
http://docs.typo3.org/typo3cms/TyposcriptReference/Setup/Page/Index.html
gruss chris
Am 3. Juli 2013 16:46 schrieb Tobias Liegl <tliegl at gmail.com>:
> Hi,
>
> du könntest es über headerData machen, z. B. so:
>
> page.headerData.120 = TEXT
> page.headerData.120.value (
>
> <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
> )
>
> Grüße
> Tobi
>
>
> Am 03.07.13 16:37, schrieb Daniel Henninger:
>
>> Hallo,
>>
>> in das Template möchte ich etwas JavaScript mit einbinden.
>>
>> Diese Zeile soll im Anschluss im Source Code erscheinen:
>> <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
>>
>> Teilinhalt des Default Root Templates
>> ..
>> page = PAGE
>> page {
>> config {
>> doctype = xhtml_trans
>> }
>> typeNum = 0
>> includeJS {
>> file1 = fileadmin/Templates/Public/Js/jquery.js
>> file1.type = text/javascript
>> file2 = //use.typekit.net/abc.js
>> file2.type = text/javascript
>> }
>>
>> includeCSS.main = fileadmin/Templates/Public/Stylesheet/design.css
>>
>> 10 < FluidTemplate
>> }
>> ..
>>
>> Wie binde ich das ein?
>>
>> Danke im Voraus.
>
>
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
--
christian wolff - webdeveloper, tech-loving geek and typo3 enthusiast
telefon: +49 30 347 244 88
mobil: +49 179 49 44 758
email: chris at connye.com
adresse: friedelstraße 31 - 12047 berlin
xing-profil: http://www.xing.com/profile/Christian_Wolff43
google+: https://plus.google.com/u/0/115669673917212236875/posts?hl=de
facebook: https://www.facebook.com/1stMachine
flattr: https://flattr.com/profile/1stmachine
More information about the TYPO3-german
mailing list