<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 dede:arclist 里面写判断语句详细代码

时间:2020-12-11

因为我也是dede初学者,遇到了这样的问题,现在直接上代码:

{dede:arclist flag=’h’ row=’11’ typeid=’15,16,17,18,19,20′ orderby =’pubdate’ orderway=’asc’}
//根据自动增量的索引来判断是否是第一个  第一个的话加一个first样式  否则不加
[field:global name=autoindex runphp=”yes”]
@me==1? @me='<span class=”first”>’ :@me= ‘<span>';
[/field:global]

//根据flag来判断
[field:flag runphp=”yes”]
//如果包括a
if(strpos(@me,’a’)!==false){
@me = ‘<strong>';
}else{
@me=’ ‘;
};
[/field:flag]

<a href=”[field:arcurl/]” target=”_blank” title=”[field:title/]”>[field:title/]</a>
[field:flag runphp=”yes”]
if(strpos(@me,’a’)!==false){
@me = ‘</strong></span>';
}else{
@me='</span>';
}
[/field:flag]
{/dede:arclist}

上面就是比较常用的判断,和基本结构了.

0
首页
案例
关于
联系