Hi Folks,
I have a custom plugin working on the admin side that executes some actions on user management. I had to use a template override of the users list view to accomplish the task. I could make the entire plugin self-contained if I could properly inject a JavaScript file into the admin list view page, but there does not seem to be any early event like onContentPrepare to do that. Is there any way to inject JavaScript into admin views from a plugin?
You can check for the list view URL in onAfterRoute and then add the script. Alternatively on onBeforeCompileHead.
Hi Folks,
I have a custom plugin working on the admin side that executes some actions on user management. I had to use a template override of the users list view to accomplish the task. I could make the entire plugin self-contained if I could properly inject a JavaScript file into the admin list view page, but there does not seem to be any early event like onContentPrepare to do that. Is there any way to inject JavaScript into admin views from a plugin?
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/joomla-dev-general/SJ2PR22MB4167CE49DE0396541D08B8F0CBE42%40SJ2PR22MB4167.namprd22.prod.outlook.com.