我的知识记录

请问PbootCMS修复文章状态为关闭时tag标签依旧显示问题(1)

  • 实现方法
    1. 打开文件 \APPs\home\model\ParserModel.php,找到 getSortTags($scode) 方法。
    2. 修改查询语句,增加文章状态判断:
      $result = parent::table('ay_contenta')     ->where('a.status=1')     ->where("c.type=2 AND a.tags<>'")     ->where($scode_arr, 'OR')     ->join($join)     ->order('a.visits DESC')     ->column('a.tags'); return $result;

       

标签:pbootcms修改模板工具-pbootcms教程-pbootcms怎么样-pboot cms模板-pbootcms换模板-

更新时间:2025-04-10 23:53:22

上一篇:请问pbootcms模板文章列表没有缩略图时也不显示默认图片(1)

下一篇:请问PbootCMS前端页面样式丢失