$ 0 0 Not sure if it's the most ideal scenario but you could inject a JS file based on the area (Eg: $tpl->addJavaScript('file')) in your UI Hook plugin