dede: arclist sort output by weight article
Need to open /include/taglib/arclist.lib.php found
else if($orderby == 'rand') $ordersql = " ORDER BY rand()";
Below it added
else if($orderby == 'weight') $ordersql = " order by arc.weight $orderWay";
dede: arclist by weight sort of label wording
-
{ dede:arclist typeid='1' row='8' isweight='y' orderby='weight' orderway='asc'}
-
<li> <span>权重:[field:weight /]</span><a href="[field:arcurl /]">[field:title /]</a></li>
-
{/ Grandfather: arclist}
dede: list sorted by weights output article
Need to open /include/arc.listview.class.php found
else if($orderby=="lastpost") {
Added on top of it
-
else if($orderby == 'weight') {
-
$ordersql = " ORDER BY arc.weight $orderWay";
-
}
Figure
Continue to find
/hot|click|lastpost
Change
/hot|click|lastpost|weight
Figure
dede: list sorted according to the weight of the label wording
-
{dede:list pagesize= '10' orderby='weight' orderway='asc'}
-
<li>
-
<a href= "[field:arcurl/]" class="title">[field:title/]</a>
-
<p class="intro"> [field:description/]... </p>
-
</li>
-
{/ Grandfather: list}
Note: weights are sorted to the smaller value ahead of the