帝国CMS按评论数量排行文章
帝国CMS按评论数量排行文章,用灵动标签调用最新最多评论文章:[e:loop={&#39;select*from[!db.pre!]ecms_newswherechecked=1orderbyplnumdesc,iddesclimit8&#39;,10,24,0}]<li><small><ahref="<?=$bqsr[titleurl]?>"cla……
帝国CMS按评论数量排行文章,用灵动标签调用最新最多评论文章:
[e:loop={'select*from[!db.pre!]ecms_newswherechecked=1orderbyplnumdesc,iddesclimit8',10,24,0}]<li><small><ahref="<?=$bqsr[titleurl]?>"class="title"><?=sub($bqr[title],0,30,false)?></a></small><p><?=$bqr[smalltext]?></p></li>[/e:loop]
这里面主要的就是 plnum 评论数量字段,在管理数据表中看不到有这个字段。
- 上一篇
phome_enewsmoreport 数据表字段解释(多访问端表)
字段名类型解释附加说明pidint(11)访问端ID pnamechar(60)访问端名称 purlchar(255)访问端地址 ppathchar(255)访问端目录 postpasschar(120)通讯密钥 postfilechar(255) 预定义字段,暂时用不到tempgidsmallint(5)使用
- 下一篇
介绍下帝国CMS用灵动标签调用多表多模型文章信息的写法
调用多模型的最新文章[e:loop={'select * from ( select id,classid,titleurl,filename,title,newstime,titlepic from [!db.pre!]ecms_movie where newstime union select id,classid,titleurl,filename,title,newst