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}

Post reply

Can't comment until