( www.mkehome.com) 模块 css
的管理选项卡不工作。当我点击 MODULES 时,结果页面没有 CSS。 Controller 没有为管理模块 UI 调用 css。当我从所需更新列表中进行更新时,结果页面仍然没有 CSS。
我的所有其他 UI 都运行良好。
homepage
上 topmenublock
上的悬停 (JS) 也停止工作。
有什么想法吗?
最佳答案
您在后端使用什么钩子(Hook)来添加 CSS 文件?
注意:
public function install() {
if (!parent::install() OR
!$this->registerHook('displayHeader') OR
!$this->registerHook('displayBackOfficeHeader') ....
/**
* use this for Frontend
*/
public function hookDisplayHeader() {
$this->context->controller->addCSS(($this->_path) . 'css/styles.css', 'all');
}
/**
* use this for Backoffice
*/
public function hookDisplayBackOfficeHeader() {
$this->context->controller->addCSS(($this->_path) . 'css/admin-styles.css', 'all');
$this->context->controller->addJS(array(
_PS_JS_DIR_ . 'fileuploader.js',
));
}
问候
关于css - 管理模块 css 在 prestashop 1.6 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24133669/