标签文件路径
include->taglib
比如修改channel 标签 找到 channel.lib.php 文件
$sql = "SELECT id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath
From `#@__arctype` WHERE reid='$typeid' And ishidden<>1 order by sortrank asc limit 0, $line "; 给这条查询语句 增加两个字段 keywords description
$sql = "SELECT id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath,keywords,description
From `#@__arctype` WHERE reid='$typeid' And ishidden<>1 order by sortrank asc limit 0, $line ";
标签内直接使用 [field:description/] [field:keywords /] 就可调用到
统计栏目下文章的数量
需要修改的文件夹路径
lnclude->common.func.php
加入这段函数
function GetTotalArc($tid){
global $dsql;
$sql = GetSonIds($tid);
$row = $dsql->GetOne("Select count(id) as dd From dede_archives where typeid in({$sql})");
return $row['dd'];
}
标签内直接调用 [field:ID function='GetTotalArc(@me)'/] 就可调用到