Pregunta

I'm working on an Expression Engine module and would like to have some custom CSS in the control panel just for my module. I really don't want to have to use a theme and an override.css file. I also wanted to separate the CSS and did not want to have to place it in an '$this->EE->cp->add_to_head()' call. Is it possible to place it in a file in my module folder like the view and js files?

¿Fue útil?

Solución

Yup. Put it in /third_party/my_module/css/my_styles.css, then in your view file call:

$this->EE->cp->load_package_css('my_styles');
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top