加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > CMS系统 > Dedecms > 正文

织梦{dede:channelartlist}标签与{dede:arclist}标签通过函数判

发布时间:2020-12-14 04:49:38 所属栏目:Dedecms 来源:网络整理
导读:?{dede:channelartlist}下的判断: 1 2 3 4 5 6 7 8 ?{dede:global.itemindex?runphp='yes'} ????if((@me?%7)?==?0){ ????@me?=?'class="on"?'; ????} ????else{ ????@me?=?''; ????} ????{/dede:global.itemindex} {dede:arclist}下的判断为: 1 2 3 4 5 6

?{dede:channelartlist}下的判断:

1
2
3
4
5
6
7
8
?{dede:global.itemindex?runphp='yes'}
????if((@me?%7)?==?0){
????@me?=?'class="on"?';
????}
????else{
????@me?=?'';
????}
????{/dede:global.itemindex}


{dede:arclist}下的判断为:

1
2
3
4
5
6
7
8
????[field:global?name=autoindex?runphp="yes"]
????if((@me)%3==0){
????@me='?class="on"';
????}
????else{
????@me='?';
????}
????[/field:global]

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读