Home  >  Article  >  CMS Tutorial  >  How does DedeCMS arclist tag realize two-column arrangement in tables and lists?

How does DedeCMS arclist tag realize two-column arrangement in tables and lists?

藏色散人
藏色散人Original
2019-12-28 09:13:341973browse

How does DedeCMS arclist tag realize two-column arrangement in tables and lists?

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=&#39;10&#39;} 
<td><a href="[field:arcurl/]">[field:title/]</a></td> 
[field:global.autoindex runphp=&#39;yes&#39;] 
if((@me % 2) == 0 && @me <> 10) 
{ 
@me = &#39;</tr></tr>&#39;; 
} 
else{ 
@me = &#39;&#39;; 
} 
[/field:global.autoindex] 
{/dede:arclist} 
</tr> 
</table> 
<ul> 
<li> 
{dede:arclist row=&#39;10&#39;} 
<a href="[field:arcurl/]">[field:title/]</a> 
[field:global.autoindex runphp=&#39;yes&#39;] 
if((@me % 2) == 0 && @me <> 10) 
{ 
@me = &#39;</li><li>&#39;; 
} 
else 
{ 
@me = &#39;&#39;; 
} 
[/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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn