Add css to admin part of module

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
manmower
Forum Members
Forum Members
Posts: 15
Joined: Wed May 13, 2009 12:41 pm

Add css to admin part of module

Post by manmower »

Hi there,

Im fairly new to CMSMS and Im currently editing a custom module. I just have one problem... I cant add custom css to the admin part of the module. I could add style tags in the middle of my template but thats not valid xHTML. I have found the ContentPostRender function but that only works on the frontend. I also tried a post filter (smarty function) But then it adds code to my template and not to the header. I am getting a bit upset because I cant manage to fix something this simple or find any hints about this... Can someone point me in the right direction?
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm
Location: MI

Re: Add css to admin part of module

Post by Jeff »

I haven't had a problem like this but the CSS for the admin template is in /admin/themes/NCleanGrey/css if that helps.

Jeff
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Add css to admin part of module

Post by Dr.CSS »

You may want to look at the source of an admin page to see if it has any specific class calls to any part you want to have take on the admin look...
manmower
Forum Members
Forum Members
Posts: 15
Joined: Wed May 13, 2009 12:41 pm

Re: Add css to admin part of module

Post by manmower »

Thanks for the reply guys...

I have looked in other modules and looked if they were able to add script to the header to the admin page, but I couldnt find anything. I think that Jeffs solution is a pretty good solution, but I would prefer that my module adds the css so it isnt dependent on css in a theme...
Post Reply

Return to “Modules/Add-Ons”