<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

织梦CMS channelartlist增加orderway实现倒序

时间:2020-12-15

最近用到channelartlist标签 
同一个频道有用到前面几个栏目,又用到后面栏目的问题 
这时候就需要定义这个标签的查询顺序,是正序还是倒序 

修改文件: 
include/taglib/channelartlist.lib.php 
1、在 //外理标记属性处增加(获取增加的属性植) 
$orderway=$ctag->GetAtt('orderway'); 
if(empty($orderway)) 

$orderway="asc"; 


2、在查询处更改(把asc改为增加的变量) 
$dsql->SetQuery("Select id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath,typelitpic 
from `dede_arctype` where $tpsql order by sortrank $orderway limit $totalnum"); 

可以了 
调用时{dede:channelartlist orderway='desc' row='3,2'} 
代表,按排序的倒序取从第四条开始的两条,默认为asc正序
    0
    首页
    案例
    关于
    联系