企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
作者:finecms论坛-[guke01](http://www.dayrui.net/home.php?mod=space&uid=841) 代码:{$t['hits']} 这是在内容页之外的页面调用文章的阅读数   {list modelid=7 catid=17 order=inputtime num=25 thumb=1 cache=36000}                         <li>                                 <a href="{$t['url']}" class="new-video-img"><img src="{thumb($t['thumb'])}" alt="{$t['title']}" width="210" height="122" /></a>                                 <a href="{$t['url']}" class="new-video-tit">{$t['title']}</a>                                 <span>                                         <i class="i-v-reading">{$t['hits']}</i>                                         {list table=comment.comment where contentid=$t[id] return=item}                                         <i class="i-v-review">{$item['total']}</i>                                         {/list}                                 </span>                         </li>                         {/list}       这段是在文章内容页之外的页面调用文章的评论数。 {list table=comment.comment where contentid=$t[id] return=item} <i class="i-v-review">{$item['total']}</i> {/list}     [coolcheng168](http://www.dayrui.net/home.php?mod=space&uid=2686)改进:文章没评论时显示 0,有评论时则显示实际评论数 {php echo $item['total'] ? $item['total'] : 0;}