5

在 Joomla 3.2.3 中,我无法像在 J 1.5.x 中那样进行文章排序,我想让首页文章排序就像我在管理员区域中定义的那样。我尝试了几种方法,但仍然没有任何成功,已经 1 周了...... :( 我最后一次尝试是这样的:

a) Content => Featured Article => (at top right) sort table by "Ordering Descending"
b) I moved the article in the order i want, then click at "Double arrow" to save it
c) Then i click at "Options" (right top), it will open the Global configuration -> Article page. 
+) Then i click at "Category"  => Choose Layout = Blog,   
+) "Blog/Featured Layout" => Multi column Order = Across. 
+) "Shared Option" => Category Order = No Order, Article Order = Ordering
Date for Ordering = published
Then clicked at "Save and Close"
d) I click at "Menu" => Main Menu => Home => layout
+) multi column order = across,
+) Category order = no order,
+) Article Order = featured article order

但是在前端,文章并没有改变它仍然按“日期降序”排序

怎么了 ?

谢谢

4

4 回答 4

7

我有J!3.3.1 并且遇到了同样的问题。

进入菜单管理器。打开每个菜单项并在“布局”选项卡中进行以下更改:

类别顺序- 无顺序(这是让您的文章按您想要的方式排序的真正关键。

文章顺序- 最近的(或您想要的任何方式订购。

订购日期- 我使用已发布,但您可以使用任何您想要的。

对每个菜单项执行此操作,它应该可以解决问题。

于 2014-06-26T17:56:04.163 回答
2

有同样的问题。无需编码。可以在菜单中完成。

  1. 文章管理器单击左侧的特色文章。您的精选文章将出现,并出现一个订购栏。相应地订购。

  2. 转到菜单管理器到您希望特色文章出现的页面。在第二个选项卡上是布局。进入文章顺序并从下拉列表中选择“精选文章顺序”。保存,您的文章将按照您选择的顺序显示。

于 2015-02-03T17:16:13.930 回答
1

Joomla 3.3.6 在这里,我遇到了同样的问题,无论如何,功能排序总是降序,我将components/com_content/helpers/query.php中的第 106 行更改为:

$orderby = 'a.featured DESC, fp.ordering, ' . $queryDate . ' DESC ';

至:

$orderby = 'a.featured ASC, fp.ordering, ' . $queryDate . ' DESC ';

现在它可以正常工作了。

于 2014-11-13T11:59:40.073 回答
0

我在为主页订购特色文章时遇到了同样的问题。无论我下什么命令,它都不起作用。

我的家庭设置是

类别顺序 - 无顺序

文章顺序 - 功能文章顺序

感谢 Andrea 的提示,我将 components/com_content/helpers/query.php 中的第 106 行更改为

$orderby = ' fp.ordering, a.featured ASC, ' . $queryDate . ' DESC ';

因此,按 fp(首页)排序始终是第一位的。

这肯定不是最好的修正,但至少它解决了我的问题。对我来说,这看起来像是订单查询构造中的一个错误

于 2015-01-12T21:30:31.853 回答