Adding extra attribute to script tag - Joomla! Forum - community, help and support
i need register script file need include attribute called "data-config";
i checked jhtml::script method i'm not sure if it's possible this way:
any ideas?
code: select all
script type="text/javascript" src="http://example.com/script.js" data-config="xxxxx"
i checked jhtml::script method i'm not sure if it's possible this way:
code: select all
jhtml::script(string $file, boolean $framework = false, boolean $relative = false, boolean $path_only = false, boolean $detect_browser = true, boolean $detect_debug = true) : mixed
any ideas?
that possible in 3.7.0+ only
see https://github.com/joomla/joomla-cms/pull/11289
or 3.7.0 alternative https://github.com/joomla/joomla-cms/pull/11671
see https://github.com/joomla/joomla-cms/pull/11289
or 3.7.0 alternative https://github.com/joomla/joomla-cms/pull/11671
Comments
Post a Comment