[TYPO3-english] page.jsInline strips parts of the JavaScript code

Steffen Kamper info at sk-typo3.de
Tue Feb 8 18:09:14 CET 2011


Hi,

this is one way, but there is another one :)

page.jsInline {
	5000 = TEXT
	5000.value (
MYAPP = {};
MYAPP.settings = {
   appId: "{$plugin.myext.appID}";
   language: "{$plugin.myext.language}";
}
)
}

then use these vars in your javascript file
MYAPP.setting.appId
MYAPP.setting.language

Sure you can use other names or flat vars, just as you like.

vg Steffen


More information about the TYPO3-english mailing list