您现在的位置是:首页 > 网站建设网站建设

dedecms,我想统计栏目下文章数量,应该怎么实现呢?

江湖快报网2023-06-14 23:23:36【网站建设】人已围观

简介调用方式:
<script src={dede:global.cfg_cmsurl/}/plus/mycount.php?tid={栏目id} type='text/javascript' language=javascript></script>
在plus目录下新建mycount.php:

调用方式:
<script src={dede:global.cfg_cmsurl/}/plus/mycount.php?tid={栏目id} type='text/javascript' language=javascript></script>
在plus目录下新建mycount.php:


1
2
3
4
5
6
require_once(dirname(__FILE__)./../include/common.inc.php);
$sql= select count(*) as num from `dede_arctiny` where typeid=$tid;
$row= $dsql->GetOne($sql); 
if(is_array($row)){
    echodocument.write('.$row['num'].');
}

dede织梦显示文章多少字数代码

{dede:arclist row=10 titlelen=30 }

织梦怎么样一篇文章在多个栏目中显示出来

在发布的时候选择副栏目就行了呗!
或者是做TAG标签的静态化之后做出来的聚合页也可以!
专题页也是可以做到的!
方法多的是!

织梦如何统计每个栏目文章的数量?

后台栏目管理,就可以看到一个栏目有多少文章数量

Tags:每个   数量   统计

很赞哦! ()

文章评论

    共有条评论来说两句吧...

    用户名:

    验证码:

本站推荐