dedecms 软件模型列表页排序无效的BUG

帮别人的事做完就忘记,别人为自己做的事时时记着,哪怕这个人只有那么一次好,他也是曾经帮助过你的人。

这个栏目用了软件频道模型,列表页有这么一段代码:

<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 rel="nofollow noopener noreferrer" href="{dede:field name='typeurl'/}" target="_blank">更多专家>></a></span> <li><strong><a rel="nofollow noopener noreferrer" href="{dede:field name='typeurl'/}" target="_blank">{dede:field name='typename'/}</a> </strong>&nbsp;</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 rel="nofollow noopener noreferrer" 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 rel="nofollow noopener noreferrer" 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 rel="nofollow noopener noreferrer" href="[field:arcurl/]" target="_blank" title="[field:os/]">详情查看>></a></li> <!--li style="color:#530000;"><a rel="nofollow noopener noreferrer" 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' } 执行出来的结果排序始终不对,找了很久,终于发现排序顺序竟然跟 软件作者:(这儿填1 ,2 ,3 ,4...)的数值大小有关,而且优先级还大过orderby='pubdate' (按发布时间)排序。例如同为软件作者:3 的情况下才会按发布时间排序,百思不得其解,算BUG不?!

到此这篇关于dedecms 软件模型列表页排序无效的BUG就介绍到这了。月亮,她等待着太阳下班后,带着一块广阔无垠的深蓝色的幕布,来到了充满喜怒哀乐的人间。随即把深蓝色的幕布抛向天空,撒出许多黄色的亮闪闪的珍珠——星星。然后静静的、 安详地观看人间在她工作期间的生活。她很轻松,没有忧愁,没有困意,独自呆在那么大的天空。就这样,每当我睡不着坐在窗前时,月亮,便成了我的知心朋友。我就和她诉说着我的心里话。更多相关dedecms 软件模型列表页排序无效的BUG内容请查看相关栏目,小编编辑不易,再次感谢大家的支持!

您可能有感兴趣的文章
dedecms如何实现任意页面调用当前会员信息的方

DedeCMS织梦判断是否有二级栏目输出HTML代码

织梦dedecms dede:arclist输出取消换行符

dedecms文章添加字段填栏目id,内容页调用字段里的栏目文章

dedeCMS首页列表页文章页调用tag的方法