typo3 - TypoScript: Check if JS/CSS File is already included -
anybody knows how check if js/css file included typoscript?
example
[template_a.ts] page.includejs { jsfile = fileadmin/template/js/jquery-1.10.2.min.js }
now if got extension same include e.g.
[extension_a.ts] page.includejs { jsfile = fileadmin/template/js/jquery-1.10.2.min.js }
is there way prevent kind of double code injection? maybe got template e.g. template_b.ts jquery not included - extension_a.ts has include jquery itself.
kinldy
you can use same key inside includejs
such gets overridden if include file twice.
other should put jquery
includejslibs
, such loaded before other js files.
other that, ts should unique each page. therefore make sure anyway resources included in-order. should not include js libs automatic extension ts setups. use documentation tell integrator needs included , not.
Comments
Post a Comment