How does DedeCMS arclist tag realize two-column arrangement in tables and lists?
Today we introduce two two-column arrangement methods (table and list):
Recommended learning: Dream Weaver cms
The code is as follows:
<table> <tr> {dede:arclist row='10'} <td><a href="[field:arcurl/]">[field:title/]</a></td> [field:global.autoindex runphp='yes'] if((@me % 2) == 0 && @me <> 10) { @me = '</tr></tr>'; } else{ @me = ''; } [/field:global.autoindex] {/dede:arclist} </tr> </table> <ul> <li> {dede:arclist row='10'} <a href="[field:arcurl/]">[field:title/]</a> [field:global.autoindex runphp='yes'] if((@me % 2) == 0 && @me <> 10) { @me = '</li><li>'; } else { @me = ''; } [/field:global.autoindex] {/dede:arclist} </li> </ul>
The above is the detailed content of How does DedeCMS arclist tag realize two-column arrangement in tables and lists?. For more information, please follow other related articles on the PHP Chinese website!