织梦DEDEcms首页文章列表实现按照digg数量排序方法 。
orderby=digg 就是按照DIGG的次数来排序的
{dede:arclist row=5 titlelen=24 orderby=digg}
[field:textlink/] [field:digg/]<b\ j \ [ 0r/>
{/dede:arclist}
具体详细代码如下
<p class="dignews margintop">
<p class="digtitle"><span>&w J + \ l z 4 ;lt;/span>
<e \ $ / 5ul id="digtitle">
<li>k + k M g :<a he l ` J G @ 8ref="###">热门</a> </li>
<lim { r % 7 b C w><a href="###" rel="external nofollow" rel="external nofollow" >推荐</a> </li>
<li><a href="###" rel="external nofollow" rel="external nofollow" >关注</a>O E P | h ] s </li>
</ul>
</p>
<dl id="diglist"><dt>正在载入,请稍后e ^ W… <!–DId D c Q R EG菜单:热门–></dt><dd><!–DIG循环体u I d i . v h开始–> {dede:arclist row=5 titlelen=24 orderby=digg}
<p class="diT 9 L k Cgbox" id="digboxa">
<p class="diglink" id="` Y 6 - (digg[field:id/]"><span>[field:digg/]</span> <ar | + ; 5 @ l 9 clat o {ss="digvisited" href="javascript:Digg(‘digg’,[field:id/]);" rel="external nofollow" rel="external nofollow" rel="external nofollow" &] 2 !gt;<!–顶一下–>H - V P 3 R</a& amp; gt;</p>
<p class="title"&g: = W L y k 3t;[field:textlink/]<span>[field:pubdate function=strftime('%m-%d',@me)/]</span> </p>
<p class="preview">[field:info/]… </p>
</p>
{/dede:arclist} <!–DIG循环体结束–><!–DIG菜单:推荐 –></dd><dd><!–DIG循环体开始–>{dede:arclist rP ; = J , zow=5 titlelen=24 orderby=digg att=5}
<p class="digbox" id="digboxb">
<p class="diglink" id="digg[field:id/]"><span>[field:digg/]</span> <a class="digvi^ + D +sited" href="javascript:Digg(‘digg’,[field:id/]);" rel="external nofollow" rel="external nofollow" rel="external nofollow" K N R o ~><!–顶一下–></a&aS N vmp; amp; gt;</p>
<p class=F z 9 } # !"title">[field:textlink/]<span>[field:pubdate function=strftime('%m-%d',@me)/]</span> </p>
<p class="preview">[field:info/]… </p>
</p>
{/dede:arclist} <!–DIG循环体结束–><!–DIG菜单:关注 –></dd><ddS n d><!–DIG循环+ z Z v \体开始–>{dede:arclist row=5 titlelen=24 orderby=clt u ; :ick}
<p class="digbox" id="digboxc">
<p class="diglink" id="digg[field:id/]"><span>[field:digg/]</span> <a class="digvisited" href="javascript:Digg(‘digg’,[field:id/]);" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><!–顶一下–></a&a[ k \ S W % E lmp; amp; gt;</p>
<p class="title">[field:textlink/]<span>[field:pubdate function=strftime('%m-%d',@me)/]</span> </p>
<p class="preview">[field:info/]… </p>
</p>
{/dede:arclist} &l W l : f r # blt;!–DIG循环体结束–></dd></dl></p&gY 5 q 5 v ! J a &t;
</p>
<D a h | q!–左侧栏结束–><script language="jav/ E v L V \ K kascript"% Y a 2 h / \ type="text/javascript">
<!–
//o m ) | i G : BDIGG资讯无刷新切换
p} * _ w L } ` Migzmo("digtitle","diglm n A u - s @ J 3ist",3,3000);
–>
</script><!–W i 2 f e N 9中栏–>