Quote:
Originally Posted by gibigbig
using in a mod:
1) make a new plugin
Hook: global_start
code:
PHP Code:
$template_hook['footer_javascript'] .= '<b>HTML goes here</b>';
spent a good few hours looking for how to do such a simple task this article has way over complicated.
also, tested and working in vb 4.1.2
|
Sorry that my article turned out to be too complicated for you. If you don't want to render a template, it may have not been made for you. Anyway - leave the template rendering aside, and you have exactly your line of code at the end of the code that covers template hooks.
By the way: hook global_start is not a good choice. It does not exist in the CMS and will vanish from any part of the product that gets rewritten to the OOP framework in future.