Hello everyone,
I want to inlude some JavaScript in every admin page, and I'm wondering if it is possible to create a module that does that? So not just for admin pages of my own module, but for every page in the admin section.
I found http://forum.cmsmadesimple.org/viewtopi ... ilit=admin, but that only outputs the content for my own admin pages.
I know I can make an admin theme, but then I will lose the possibility of enabling/disabling my module, as well as upgrade-support.
With kind regards,
Jurrie
Including HTML for every admin page?
Re: Including HTML for every admin page?
At one point, I was looking to do the same thing, but looking at the code, it doesn't seem possible from a module point-of-view.. The only way that I can see to do this is to modify the admin theme.
What were you trying to accomplish? I was trying to use JQuery to change a text extra field definition to be a GBFilePicker input, so I could use it in News, or any other module .. I found another way to do this, but it was very News-specific (module_custom/UDT), as opposed to being a generic JQuery replacement.
What were you trying to accomplish? I was trying to use JQuery to change a text extra field definition to be a GBFilePicker input, so I could use it in News, or any other module .. I found another way to do this, but it was very News-specific (module_custom/UDT), as opposed to being a generic JQuery replacement.
Re: Including HTML for every admin page?
Hi Wishbone,Wishbone wrote:At one point, I was looking to do the same thing, but looking at the code, it doesn't seem possible from a module point-of-view.. The only way that I can see to do this is to modify the admin theme.
Thanks for your reply. Too bad it's not quite possible, but I already kinda thought it wasn't.
I'm trying to modify the 'preview' functionallity. Instead of opening the link directly, I want it in a popup I can control.Wishbone wrote:What were you trying to accomplish?
If you know of a way to do this (other than modifying the theme of course ), please let me know.
With kind regards,
Jurrie
-
- Power Poster
- Posts: 751
- Joined: Fri Sep 12, 2008 2:34 pm
- Location: Schweiz / Switzerland
Re: Including HTML for every admin page?
Maybe with eventmanager (modify html)?
Re: Including HTML for every admin page?
As far as I know, the event manager only works on the front end... I tried.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: Including HTML for every admin page?
Correct... there is no way to inject javascript/html into each admin page.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.