Js on_page_load

Permalink
I've created a custom block using designer content, but I need to execute a script on each page that contains this block (or more specifically multiple instances of this block). I Know I saw something in some documentation somewhere about an on_page_load() function, but I can't remember if that was the appropriate function or where that documentation was. If anyone can point me in the right direction that would be great.

GundlachMarketing
 
bbeng89 replied on at Permalink Reply
bbeng89
Check out the docs on Events here:

https://www.concrete5.org/documentation/developers/system/events...

If you scroll all the way to the bottom you'll see how you can hook into events in your site.