t0m3kk Posted February 28, 2012 Share Posted February 28, 2012 Hi everyone, I make a tab for my module but how to add javascript and css to head? I know about Tools::addJS and Tools::addCSS but they doesn't work... Best regards, George! Link to comment Share on other sites More sharing options...
Prescol Posted March 11, 2012 Share Posted March 11, 2012 Prestashop add JS files in BO inline, and css are predefined in admin themes. Link to comment Share on other sites More sharing options...
shacker Posted March 11, 2012 Share Posted March 11, 2012 Paste here the code that you have putted. Is presta 1.4? Link to comment Share on other sites More sharing options...
sharif854 Posted October 20, 2012 Share Posted October 20, 2012 my problem thats it how to add css file and js file in admin panel prestashop 1.4.x please help my code is nothing just i know how to add js file and css file i try to use Tools::addCSS() and Tools::addJS but don't work thank you Link to comment Share on other sites More sharing options...
shacker Posted October 23, 2012 Share Posted October 23, 2012 you need to add in a module , or in entire admin? Link to comment Share on other sites More sharing options...
sharif854 Posted October 23, 2012 Share Posted October 23, 2012 i have module that has admin tab and i need to modify style sheet of my admin Tab you think i build module that i want to sell it and this module in back-end has own css (sorry my English is not good i hope you know what i want) thank you Link to comment Share on other sites More sharing options...
shacker Posted October 31, 2012 Share Posted October 31, 2012 in my modules, in the displayform function, i use this code to add css or js $this->_html .= ' <link rel="stylesheet" href="../modules/flashbanner/css/colorpicker.css" type="text/css" /> <link rel="stylesheet" type="text/css" media="screen, projection" href="../modules/flashbanner/css/slider.css" /> <link rel="stylesheet" type="text/css" media="screen, projection" href="../modules/flashbanner/css/demo.css" /> <link rel="stylesheet" type="text/css" media="screen, projection" href="../modules/flashbanner/css/jslider.css" /> <link rel="stylesheet" type="text/css" media="screen, projection" href="../modules/flashbanner/css/jslider.blue.css" /> '; if (_PS_VERSION_ < "1.5.0.0") { $this->_html .= ' <script type="text/javascript" src="../modules/flashbanner/js/jquery.min.js"></script> '; } Link to comment Share on other sites More sharing options...
sharif854 Posted October 31, 2012 Share Posted October 31, 2012 Thank you but this codes is not validate in w3 but i'll try to add js and css in header like front but prestashop forgive me i kidding thank you Link to comment Share on other sites More sharing options...
shacker Posted November 1, 2012 Share Posted November 1, 2012 Whats the problem to put in BO? you dont need to validate back office, becouse search bots ignore this folder 1 Link to comment Share on other sites More sharing options...
sharif854 Posted November 1, 2012 Share Posted November 1, 2012 Thank you i was not sure this you say right . I import css and js like that you say Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now