织梦DEDEcms首页文章列表实现按照digg数量排序方法 。orderby=digg 就是按照DIGG的次数来排序的{dede:arclist row=5 titlelen=24 orderby=digg}[field:textlink/] [field:digg/]<br/>{/dede:arclist}
具体详细代码如下<div class="dignews margintop"><div class="digtitle"><span></span><ul id="digtitle"><li><a href="###">热门</a> </li><li><a href="###">推荐</a> </li><li><a href="###">关注</a> </li></ul></div>
<dl id="diglist"><dt>正在载入,请稍后… <!–DIG菜单:热门–></dt><dd><!–DIG循环体开始–> {dede:arclist row=5 titlelen=24 orderby=digg}<div class="digbox" id="digboxa"><div class="diglink" id="digg[field:id/]"><span>[field:digg/]</span> <a class="digvisited" href="javascript:Digg(‘digg’,[field:id/]);"><!–顶一下–></a& amp; gt;</div><div class="title">[field:textlink/]<span>[field:pubdate function=strftime('%m-%d',@me)/]</span> </div><div class="preview">[field:info/]… </div></div>
{/dede:arclist} <!–DIG循环体结束–><!–DIG菜单:推荐 –></dd><dd><!–DIG循环体开始–>{dede:arclist row=5 titlelen=24 orderby=digg att=5}<div class="digbox" id="digboxb"><div class="diglink" id="digg[field:id/]"><span>[field:digg/]</span> <a class="digvisited" href="javascript:Digg(‘digg’,[field:id/]);"><!–顶一下–></a& amp; gt;</div><div class="title">[field:textlink/]<span>[field:pubdate function=strftime('%m-%d',@me)/]</span> </div><div class="preview">[field:info/]… </div></div>
{/dede:arclist} <!–DIG循环体结束–><!–DIG菜单:关注 –></dd><dd><!–DIG循环体开始–>{dede:arclist row=5 titlelen=24 orderby=click}<div class="digbox" id="digboxc"><div class="diglink" id="digg[field:id/]"><span>[field:digg/]</span> <a class="digvisited" href="javascript:Digg(‘digg’,[field:id/]);"><!–顶一下–></a& amp; gt;</div><div class="title">[field:textlink/]<span>[field:pubdate function=strftime('%m-%d',@me)/]</span> </div><div class="preview">[field:info/]… </div></div>
{/dede:arclist} <!–DIG循环体结束–></dd></dl></div></div><!–左侧栏结束–><script language="javascript" type="text/javascript"><!–//DIGG资讯无刷新切换pigzmo("digtitle","diglist",3,3000);–></script><!–中栏–>