如何将评论插件-评论内容静态化到前端网页中 迅睿框架 更新 2022-07-13 16:36:09 大麦地鼠 官方插件【评论系统 V2.3.5】如何静态化到前端页面?目前show.html这么写的引用的comment_ajax.html模板,模板没有变动前端页面正常显示但是评论内容位置没有生成静态查看comment_ajax.html模板对应位置,是loop的循环标签如何将评论内容静态化到前端网页中呢?应用版权:官方应用名称:评论系统
<?php $cache = \Phpcmf\Service::L('cache')->get('app-comment-'.SITE_ID, 'module', MOD_DIR); if (\Phpcmf\Service::IS_MOBILE()) { $pagesize = (int)$cache['pagesize_mobile']; } else { $pagesize = (int)$cache['pagesize']; } !$pagesize && $pagesize = 10; // 查询数据 list($list, $total) = $ci->content_model->get_comment_result($id, $cache['order'], 1, $pagesize, 0, $cache['field']); $index = $data; $ajax_pages= $this->_get_pages(\Phpcmf\Service::L('Router')->show_url(\Phpcmf\Service::C()->module, $data, '{page}'), $total, $pagesize); ?> {template "comment_ajax.html"}$ajax_pages= $this->_get_pages(\Phpcmf\Service::L('Router')->show_url(\Phpcmf\Service::C()->module, $data, '{page}'), $total, $pagesize); 这句话删除