实现教程
1、打开 /include/taglib/tag.lib.php 找到
$row['highlight'] = 0;
在它下面加入
$count
=
$dsql
->GetOne(
"Select count(tid) From `dede_taglist` where tag = '"
.
$row
['tag
']."'
");
$row
[
'count'
] =
$count
[
'count(tid)'
];
2、模板tag标签写法示例
<
div
class
=
"d_tags"
>
{dede:tag row='30' sort='new' getall='0'} <
a
href
=
"[field:link/]"
>[field:tag /] ([field:count /])</
a
>
{/dede:tag}</
div
>
[field:count /] 就是对应文档数量