Fixing Joomla's dumb header manipulation ? - Joomla! Forum - community, help and support
(joomla 3.7.4, php 7.1.8 )
at first thought problem template i'm using.
but i've inspected template code , can't see there. also, joomla manipulating <script> tags template itself, joomla level thing !
for example, template has :
joomla mangles :
this causing me major problems, because when add :
joomla mangles javascript, i.e. :
which (a) breaks ld-json, , (b) dumb on part of joomla manipulate stuff has no business manipulating.
at first thought problem template i'm using.
but i've inspected template code , can't see there. also, joomla manipulating <script> tags template itself, joomla level thing !
for example, template has :
code: select all
<script>foo</script>
joomla mangles :
code: select all
<script type="text/javascript">foo<script>
this causing me major problems, because when add :
code: select all
<script type="application/ld+json">bar</script>
joomla mangles javascript, i.e. :
code: select all
<script type="text/javascript">bar<script>
which (a) breaks ld-json, , (b) dumb on part of joomla manipulate stuff has no business manipulating.
do use addscript?
the second parameter type string
https://api.joomla.org/cms-3/classes/jdocumentjson.html#metho
https://api.joomla.org/cms-3/classes/jdocumentjson.html#method_addscriptdeclaration
the second parameter type string
https://api.joomla.org/cms-3/classes/jdocumentjson.html#metho
https://api.joomla.org/cms-3/classes/jdocumentjson.html#method_addscriptdeclaration
Comments
Post a Comment