문제

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?

도움이 되었습니까?

해결책

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');
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top