As shown in the figure below, the effect of sorting lists by increasing numbers is very common, and can be used by various websites, especially when downloading rankings, clicking rankings, and sales rankings.
This effect is actually achieved by CSS control.
Dedecms Incremental Digital Sort Label [field: global name=autoindex/]
The html code is as follows
<span class="n1"></span>
<span class="n2"></span>
<span class="n3"></span>
<span class="n4"></span>
<span class="n5"></span>
<span class="n6"></span>
<span class="n7"></span>
<span class="n8"></span>
<span class="n9"></span>
<span class="n10"></span>
Then control the display of numeric icons through CSS styles.
Therefore, this incremental number must be automatically output when DEDECMS calls the information list.
You can use the following label:
[field:global name=autoindex/]
It will automatically become 1, 2, 3, 4
Code example:
{dede:arclist row=7 titlelen=64 limit='8,8' orderby='id'}
<dd><span class="n[field:global name=autoindex/]"></span><a href="[field:arcurl/]" target="_blank" title="[field:title/]" style="">[field:title/]</a></dd>
{/dede:arclist}
Statement: All articles on this site, unless otherwise specified or marked, are originally published on this site. No individual or organization is allowed to copy, embezzle, collect and publish the content of this website to any website, book and other media platforms without the consent of this website. If the content of this website infringes upon the legitimate rights and interests of the original author, please contact us for handling.