mojowill Posted January 17, 2011 Share Posted January 17, 2011 I need to include some custom CSS in my addon module I am developing. What's the best way to do this? 0 Quote Link to comment Share on other sites More sharing options...
ChrisTERiS Posted January 21, 2011 Share Posted January 21, 2011 I don't know if it's the best way to do it, but the way that I tried and works fine is to add at the top of your template file: <link rel="stylesheet" type="text/css" href="mystyle.css" /> Please note that the css link is relative to your php file and NOT to template file. So if you want to add your stylesheet in the templates directory you must change the link to href="templates/default/mystyle.css" or href="templates/portal/mystyle.css" Hope that it helps. Maria 0 Quote Link to comment Share on other sites More sharing options...
mojowill Posted January 21, 2011 Author Share Posted January 21, 2011 thanks for the reply but I want this to be in an Addon Module so don't really want people to have to edit their template files. 0 Quote Link to comment Share on other sites More sharing options...
jeremyhaber Posted January 21, 2011 Share Posted January 21, 2011 I usually inline it. <style type="text/css"> // CSS HERE </style> 0 Quote Link to comment Share on other sites More sharing options...
ChrisTERiS Posted January 22, 2011 Share Posted January 22, 2011 thanks for the reply but I want this to be in an Addon Module so don't really want people to have to edit their template files. Sorry, I thought that your AddOn Module has it's own template. Maria 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.