addScriptDeclaration in construct func of plugin exe multi - Joomla! Forum - community, help and support
code: select all
public function plgcontentplgname(& $subject, $config)
{
parent::__construct($subject, $config);
$this->loadlanguage();
$document = jfactory::getdocument();
$document->addscript("http://static.duoshuo.com/embed.js");
$document->addscriptdeclaration("
var duoshuoquery = {short_name:\"official\"};
");if enable cache,the output code sometimes
code: select all
window.addevent('load', function() {
new jcaption('img.caption');
});
var duoshuoquery = {short_name:"official"};
window.addevent('load', function() {
new jcaption('img.caption');
});
var duoshuoquery = {short_name:"official"};
i raised issue on year ago maintainers of joomla git repository here:
https://github.com/joomla/joomla-platfo ... nt-5839872
louis landry closed message:
i'm going close issue, , if of want take crack @ pull request fix please feel free.
someone else reported (over year ago) in joomlacode issue tracker here:
http://joomlacode.org/gf/project/joomla ... m_id=26551
short answer per louis landry, feel free fix yourself...
https://github.com/joomla/joomla-platfo ... nt-5839872
louis landry closed message:
i'm going close issue, , if of want take crack @ pull request fix please feel free.
someone else reported (over year ago) in joomlacode issue tracker here:
http://joomlacode.org/gf/project/joomla ... m_id=26551
short answer per louis landry, feel free fix yourself...
Comments
Post a Comment