Open: inc_channel_unit_functions.php
Join the following paragraph
Copy Code code as follows:
Zouql
Total $f List
$t number of lists per group
function MyList ($f, $t, $meid, $con)
{
if ($meid% $t ==0 && $meid < $f)
return $con;
}
Use examples:
Copy Code code as follows:
<ul>
{dede:arclist row=20 titlelen=80 orderby=pubdate}
<li [Field:global name=autoindex function= ' MyList ("2", @me, "class=\" color\ "") "/]>[field:textlink/]</ Li>
[Field:global name=autoindex function= ' MyList ("5", @me, "<li class=\" line\ "></li>") '/]
{/dede:arclist}
</ul>
The example above contains 2 usages:
Copy Code code as follows:
[Field:global name=autoindex function= ' MyList ("2", @me, "class=\" color\ "") "
And
Copy Code code as follows:
[Field:global name=autoindex function= ' MyList ("5", @me, "<li class=\" line\ "></li>") '/]
The first, if you define the relevant CSS, is the interlace color
The second, if you define the relevant CSS, is 5 lines plus a horizontal line, 20 list plus 3 lines is not 4, the last one does not add
Want to finally also add the && $meid < $f can be removed.