DEDECMS自动编号(序号)autoindex属性(2)

        <li [field:global name='autoindex' runphp='yes']if(@me%2==0){@me='class="rr"';}else{@me='';}[/field:global] ><h3><a href='[field:typelink/]'>[field:typename/]</a></h3></li>

{/dede:channel}

 

 

 

在arclist中使用autoindex runphp 时用这种方式:

 

{dede:arclist titlelen='22' row='4' flag='c' orderby='id'}

      <a href=http://www.dede58.com/"[field:arcurl /]" target="_blank">[field:title /]</a>

       [field:global name='autoindex' runphp='yes']if(@me==2){@me="<br />";}else{@me=' ';}[/field:global]{/dede:arclist}

 

 

自增1

 

 [field:global.autoindex/]

 

 

eg---->

 

{dede:arclist channelid=17 row=6 orderby=pubdate titlelen=40 addfields='docphoto,docjob,doctec' typeid='123,136,146,155,172,182,202'}

                <div id="h_nrr_zj_[field:global.autoindex/]" class="nrr_zjl" [field:global name='autoindex' runphp='yes']if(@me==1){@me="";}else{@me='style="display:none;"';}[/field:global] >

                <div><a href=http://www.dede58.com/"[field:arcurl/]" title="[field:fulltitle/]" target="_blank"><img src=http://www.dede58.com/"[field:litpic/]" alt="[field:fulltitle/]" /></a></div>

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/1e7e0edca15f033f5c8f2339b1e10a60.html