Is it possible to insert pipe |
(from JavaScript code) into TypoScript? When I insert that code:
page.jsFooterInline {
10 = TEXT
10.dataWrap (
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXXXX-X']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick/dc.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
)
}
TYPO3 treat the pipe element as wrap
and cut all of code behind the pipe.
Thanks for any help
Is it possible to insert pipe |
(from JavaScript code) into TypoScript? When I insert that code:
page.jsFooterInline {
10 = TEXT
10.dataWrap (
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXXXX-X']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick/dc.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
)
}
TYPO3 treat the pipe element as wrap
and cut all of code behind the pipe.
Thanks for any help
Share Improve this question edited Aug 6, 2013 at 13:00 Adrian asked Aug 6, 2013 at 12:35 AdrianAdrian 1,0022 gold badges17 silver badges49 bronze badges1 Answer
Reset to default 8You can insert inline javascript in typoscript template this way:
page.jsFooterInline {
10 = TEXT
10.value (
var _gaq = _gaq || [];
)
}