eyoucms调取当前tag列表页面的文档总数及点击数

COS、CDN
wdzsjl 2周前 (01-01) 阅读数 32 #PbootCMS
修改文件 /application/home/controller/Tags.php 找到如下代码(大概在130行左右): 'litpic'   => !empty($tagindexInfo['litpic']) ? handle_subdir_pic($tagindexInfo['litpic']) : $tagindexInfo['litpic'], 在此代码下方添加代码 'tagcount'   => !empty($tagindexInfo['count']) ? $tagindexInfo['count'] : $tagindexInfo['count'], 'tagtotal'   => !empty($tagindexInfo['total']) ? $tagindexInfo['total'] : $tagindexInfo['total'], 模板调取标签 {$eyou.field.tagtotal} {$eyou.field.tagcount}

 

COS、CDN
热门