Forum OpenACS Development: Re: Adding Google AdSense tags to page header

Posted by Brian Fenton on
Hi Iuri

I think you can just the -script parameter to template::head::add_javascript e.g.


Posted by Iuri Sampaio on
Hi Brian,

Thanks for the tip. Yes, they work indeed.
However, I was looking for a standard approach to add new arguments to a ad_proc call.

So, I've written a new version of template::head::add_javascript .

Basically, I copied and pasted 100% of that ad_proc, then I added custom code to extend and support Google parameters. It worked beautifully!

Happy Easter!