DEDE首页和列表页文章时间乱序

关于dedecms设置自动发布后首页和文章列表页的时间乱序问题
将以下的代码替换以下就行了
首页的
路径:/include/taglib/arclist.lib.php

    else if($orderby == 'sortrank' || $orderby=='pubdate') $ordersql 

= " ORDER BY arc.sortrank $orderWay";

找到将以上的换成:
	else if($orderby == 'sortrank' || $orderby=='pubdate') 

$ordersql = " ORDER BY arc.pubdate $orderWay";

列表页的
路径:/include/arc.listview.class.php

        $ordersql = '';
        if($orderby=="senddate" || $orderby=="id") {
            $ordersql=" ORDER BY arc.id $orderWay";
        }
将senddate改成pubdate
        $ordersql = '';
        if($orderby=="pubdate" || $orderby=="id") {
            $ordersql=" ORDER BY arc.id $orderWay";
        }

本文固定链接: http://www.8he.cn/chashuijian/dede%e9%a6%96%e9%a1%b5%e5%92%8c%e5%88%97%e8%a1%a8%e9%a1%b5%e6%96%87%e7%ab%a0%e6%97%b6%e9%97%b4%e4%b9%b1%e5%ba%8f.html | 滨河的博客_安卓应用 语音博客 网站seo 财经股票 生活学习

该日志由 xiv 于2012年01月10日发表在 茶水间 分类下, 你可以发表评论,并在保留原文地址及作者的情况下引用到你的网站或博客。
原创文章转载请注明: DEDE首页和列表页文章时间乱序 | 滨河的博客_安卓应用 语音博客 网站seo 财经股票 生活学习
关键字:

DEDE首页和列表页文章时间乱序:目前有2 条留言

  1. 板凳
    TC:

    固定链接太长了吧

    2012-01-13 7:16 上午 [回复]
  2. 沙发
    板凳:

    dedecms我越来越不喜欢了。

    2012-01-13 4:57 下午 [回复]

发表评论

快捷键:Ctrl+Enter