這個(gè)欄目用了軟件頻道模型,列表頁(yè)有這么一段代碼:
<div class="c_info_bg">
<div id="wzdaohang">您的位置:{dede:field name='position'/} 列表</div>
{dede:channelartlist typeid='4'}
<div style="padding:10px 0 8px 0; margin-left:10px; height:186px; width:642px; border-bottomn:1px f9d0d7 solid;" >
<div style=" width:642px; height:17px;"><ul><span style="float:right;"><a href="{dede:field name='typeurl'/}" target="_blank">更多專(zhuān)家>></a></span>
<li><strong><a href="{dede:field name='typeurl'/}" target="_blank">{dede:field name='typename'/}</a> </strong> </li></ul>
</div>
<div style=" width:642px; height:169px;display:none" class="class{dede:field name='typeid'/}">
{dede:arclist row='4' flag='a' infolen='14' titlelen='24' orderby='pubdate' }
<ul style="width:147px; height:157px; font-size:12px; line-height:20px; float:left;" class="objul">
<li class="writerli" style="display:none">[field:writer/]</li>
<li style="width:147px; height:103px; border:1px #f2c4cb solid;"><a href="[field:arcurl/]" target="_blank" title=" [field:os/]"><img src="[field:litpic/]" width="137" height="94" border="0" style="margin-left:5px; margin-top:4px;" /></a></li>
<li style="text-align:center;height:2px;font-size:0px;line-height:0px;" ></li>
<li style="text-align:left;height:24px;" ><a href="[field:arcurl/]" target="_blank" title="[field:os/]">[field:title/] [field:os function="cn_substr(@me,16)"/]</a></li>
<li>[field:description function="cn_substr(@me,34)"/]...<a href="[field:arcurl/]" target="_blank" title="[field:os/]">詳情查看>></a></li>
<!--li style="color:#530000;"><a href="[field:arcurl/]" target="_blank" title="[field:os/]">詳情查看>></a></li-->
</ul>
<ul style="width:14px; float:left;"></ul>
{/dede:arclist}
</div>
</div>
<script language="javascript">testdiv("class{dede:field name='typeid'/}");</script>
{/dede:channelartlist}
</div>
但這句{dede:arclist row='4' flag='a' infolen='14' titlelen='24' orderby='pubdate' }
執(zhí)行出來(lái)的結(jié)果排序始終不對(duì),找了很久,終于發(fā)現(xiàn)排序順序竟然跟 軟件作者:(這兒填1 ,2 ,3 ,4...)的數(shù)值大小有關(guān),而且優(yōu)先級(jí)還大過(guò)orderby='pubdate' (按發(fā)布時(shí)間)排序。例如同為軟件作者:3 的情況下才會(huì)按發(fā)布時(shí)間排序,百思不得其解,算BUG不?!
版權(quán)聲明: 本站資源均來(lái)自互聯(lián)網(wǎng)或會(huì)員發(fā)布,如果侵犯了您的權(quán)益請(qǐng)與我們聯(lián)系,我們將在24小時(shí)內(nèi)刪除!謝謝!
轉(zhuǎn)載請(qǐng)注明: dedecms 軟件模型列表頁(yè)排序無(wú)效的BUG