I'm working on a plugin for OJS in which I need to add a call to a JavaScript file in between the head tags.
I''ve seen some other plugins have some apparent success with this action, but I'm unable to achieve it.
I did something like this:
- Code: Select all
$additionalHeadData = $templateManager->get_template_vars('additionalHeadData');
$scriptUrl1 = '<script type="text/javascript" src="http://$remoteServerPath/folderpath/file.php></script>';
$templateManager->assign('additionalHeadData', $additionalHeadData."\n\t".$scriptUrl1);
Alas, it does not work, Would anyone with more OJS dev experience be able to point me in the proper direction?
Thanks.
