关于ThinkCMF6中,模版设置文件中is_public设置为0不显示的修改

2021-09-16 01:251792

关于ThinkCMF6中,模版设置文件中is_public设置为0不显示的修改。

修改\vendor\thinkcmf\cmf\src\controller\HomeBaseController.php文件,getThemeFileMore()方法中,189行-192行:

$files = Db::name('theme_file')->field('more')->where('theme', $theme)
    ->where(function ($query) use ($themeFile) {
        $query->where('is_public', 1)->whereOr('file', $themeFile);
    })->select();

修改为:

$files = Db::name('theme_file')->field('more')->where('theme', $theme)->whereOr('file', $themeFile)->select();


上一篇: thinkcmf中,插件widget模版根据不同主题模版切换

下一篇: ThinkCMF获取插件配置信息cmf_get_plugin_config()