Adding extra attribute to script tag - Joomla! Forum - community, help and support


i need register script file need include attribute called "data-config";

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?






Comments

Popular posts from this blog

Upgrade 3.4.8 to 3.5.1 failed "download package failed" - Joomla! Forum - community, help and support

Joomal 3.6.3 update error - PHP temporary folder is not set - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support